Skip to main content
Participating Frequently
January 19, 2011
Question

create index in solr & cf9 from query data

  • January 19, 2011
  • 1 reply
  • 570 views

Hey guys,

   Does anyone have a working example of cfindex where input data comes from a query and where you can search said index for a given value in a specified field.

    I create an index as below.

    <cfindex action="update" query="v_test" collection="lib_30" type="custom"
             key="sequenceId" title="Lib 30 index" body="#v_test.columnList#" category="#v_test.columnList#"
             status="report">

    This creats an index but my fields tag in index are empty, and all the data in each column is concatinated together to create one long string.


     I have googled, and tried to make heads and tails of the live doc, but I haven't been successful

     Any one, please help

Jay

    This topic has been closed for replies.

    1 reply

    Inspiring
    January 23, 2011

    I can't see any evidence that CF supports individual search fields with Solr.  The <cfindex> implementation for Solr seems to just replicate what it did for Verity: bung all the data from the various columns specified in the BODY attribute into one long string.

    I hasten to add that my comment is not based on code-based investigation, but just my reading of the docs coupled with your findings.  And tangential experience with CF's Solr integration implementation which I have found to be a bit... basic.

    --

    Adam

    Participating Frequently
    January 27, 2011

    Umm thats where my finding lead me to believe but I was hoping that I was wrong.  Bummer.  By any chance you know how to envoke underliying solr libs?  I think I am going to be forced to create custom tags to mimic cfindex and search.

    Thanks

    Jay

    Inspiring
    January 28, 2011

    I've not done anything like this with Solr, but I have with the underlying Lucene (albeit it years ago, and on a project I no longer have the code for).  It's all just Java, and it's pretty well documented.  I'm sure Solr has equivalent docs.

    --

    Adam