ColdFusion collection / search won't populate -


i new using cfcollection , cfsearch, gave go , seemed work. then, purged collection , stopeed working. then, decided delete collection , start over. collection deleted fine, same code won't return results.

my query returns 5 results collection , subsequent search should picking up, returned search empty, when specify wildcard * in criteria.

is there wrong code below? no errors or anything, blank results.

public void function ajax() {       param name="params.keywords" default="soundcloud";      onlyprovides("json");      local.collectionpath = expandpath( "./" ) & "collections/";      // delete     /*     collection          action="delete"          collection="pincollection"          path="#local.collectionpath#";     */      collection          action="list"          name="local.collectionlist";      local.collectionlist = valuelist(collectionlist.name);      if ( ! listfind(local.collectionlist, "pincollection") ) {          collection              action="create"              collection="pincollection"              engine="solr"              categories="yes"             path="#local.collectionpath#";      }      local.pins = model("pin").findall(          include     = "user",          order       = "createdat desc"      );      index          collection="pincollection"          action="update"          type="custom"          title="title"         body="description"          custom1="latitude"         custom2="longitude"         custom3="typeid"         custom4="createdat"         custom5="updatedat"         query="local.pins"         category="typeid"         key="id";      search          name="local.pinsearch"          collection="pincollection"          contexthighlightbegin="<strong>"          contexthighlightend="</strong>"          category="2,1"          maxrows="100"         criteria="•";       writedump(var=local.pinsearch); // empty search query.     writedump(var=local.pins, abort=true); // original query returns 5 results.      renderwith(data=local.pinsearch, layout=false);  } 

i using railo.

i can see in collections folder, folder collection has been created, not contain files.

i'm newbie @ using coldfusion / railo search. seems straight-forward, i'm stumped.

thanks, mikey.

ps - using cfwheels, hence cfwheels specific functions. these can ignored.

before go far troubleshooting this, consider switching dedicated solr server if can. hit limits of solr in cf9 years ago , used cfsolrlib project shannon hicks connect fresh install of solr on tomcat. of benefits are:

  • reducing overhead cf server.
  • indexing performance boost.
  • separates search related troubleshooting rest of application (like in case).
  • you gain freedom of making changes/upgrades solr server independently.

shannon's project on github: https://github.com/iotashan/cfsolrlib

mc