Solved

SOLR on CF8

Posted on 2014-11-04
8
125 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
 
LVL 25

Author Comment

by:dgrafx
ID: 40424715
Thanks - let me review those links ...
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now