Solved

SOLR on CF8

Posted on 2014-11-04
8
129 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coldfusion redirect to new URL when timeout 4 71
RETURN INFORMATION FROM COLDFSION CFC 1 67
multi page pdf 4 88
Coldfusion Mysql get data from two tables 3 87
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…
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

806 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