Solved

SOLR on CF8

Posted on 2014-11-04
8
134 Views
Last Modified: 2014-11-06
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 ...
0
Comment
Question by:dgrafx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 25

Accepted Solution

by:
James Rodgers earned 500 total points
ID: 40423745
Since there is no native processes for Solr and CF8, Solr was introduced in CF9, so form a coding stand point there is quite a bit of coding you would need to do to integrate the two systems.
create cfc's/functions to manage search input and conversion to solr Lucene syntax
create cfc's/functions to manage the returns from solr

balance that code need with the testing, integration time, and code revisions against updating to CF10/11 and the update would be cheaper and, in my opinion, more stable

Can it be done, yes but the amount of time spent in doing it could easily be offset with the purchase of updated software
0
 
LVL 25

Author Comment

by:dgrafx
ID: 40424202
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
0
 
LVL 25

Expert Comment

by:James Rodgers
ID: 40424671
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

0
Stressed Out?

Watch some penguins on the livecam!

 
LVL 25

Author Comment

by:dgrafx
ID: 40424715
Thanks - let me review those links ...
0
 
LVL 25

Author Closing Comment

by:dgrafx
ID: 40425433
Thanks for the help!
0
 
LVL 25

Expert Comment

by:James Rodgers
ID: 40425922
are you going with an upgrade or integration of solr into cf8?
0
 
LVL 25

Author Comment

by:dgrafx
ID: 40426406
I'm actually just researching this.
The company has plans for CF 10 having nothing to do with this issue.
Thanks
0
 
LVL 25

Expert Comment

by:James Rodgers
ID: 40426664
Perfect!
0

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question