Link to home
Start Free TrialLog in
Avatar of dgrafx
dgrafxFlag for United States of America

asked on

SOLR on CF8

Hello
I am looking for input on the feasibility of using SOLR with CF8.
I have not done this on CF8 and am looking for possible problems.
Insight?

Thanks ...
ASKER CERTIFIED SOLUTION
Avatar of James Rodgers
James Rodgers
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dgrafx

ASKER

Thanks for the post!
Can you provide a link or two that discus the native processes (SOLR & CF9) that you refer to so I can research.
Also something that points to your other 2 points so I can educate myself as well.
1. create cfc's/functions to manage search input and conversion to solr Lucene syntax
2. create cfc's/functions to manage the returns from solr
I am not familiar with the conversion that takes place.

Thanks
some resources
https://wiki.apache.org/solr/SolrQuerySyntax
http://wiki.apache.org/solr/CommonQueryParameters
http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
http://www.solrtutorial.com/solr-query-syntax.html

cf still uses the cfindex and cfsearch tags as normal when interacting with the cf version of solr, solr is installed with cf as of 9.01(?) to replace verity

if you use cf8 you would need to code the interactions between cf and solr, as of the solr inclusion in cf, the system takes care of about 90% of those interactions with the remaining parts being custom code/search changes.

you can use the cfsearch tag or do it like this
http://localhost:8985/solr/collectioncrawlpublic/select?q=#session.sSearchCriteria#&fl=*,score&wt=csv&rows=250

Open in new window


the cftags make it much easier, particularly when you move on to paging, search within and highlighting.

<cfsearch  
            collection = "collectioncrawlpublic" 
            name = "SEARCH_DOCS_MEMBERS" 
            contextHighlightBegin = '<span style="background-color:yellow">' 
            contextHighlightEnd = "</span>"
            contextPassages = "4" 
            criteria = "#session.sSearchCriteria#" 
            status = "structSearchPublic" 
            suggestions = "10" 
            >

Open in new window

Avatar of dgrafx

ASKER

Thanks - let me review those links ...
Avatar of dgrafx

ASKER

Thanks for the help!
are you going with an upgrade or integration of solr into cf8?
Avatar of dgrafx

ASKER

I'm actually just researching this.
The company has plans for CF 10 having nothing to do with this issue.
Thanks
Perfect!