What I ended up doing is using CFINDEX/CFCOLLECTION to create and index the collection but then using a manually cfhttp request to the localhost solr index to get the facet counts.
In my scenario the 4 custom fields wasn't a limitation as much as not getting the facet counts was. This thing is easily 5% of the run time that its Verity counterpart was - its amazing. Plus you can optimize/search/index all at the same time and your SOLR collection doesn't get corrupted like verity! For anyone else interested, it seems there have been a few works like Dominic's here where someone got some of the way into it, the example code is pretty simple though once you get the solr query syntax down. Here is a coldfusion object for interacting with solr http://solcoldfusion.riaforge.org/ I had to tweak it to fit my collection, and local port ( eg. http://localhost:8983/solr/<collectionamne/action ) This page was also invaluable, but its a shame they don't give examples of the dataset, its not until you run one of these quries and see the output that you realize how powerful it is: http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr Cheers! On Mon, Jan 17, 2011 at 6:01 AM, Dominic Watson < [email protected]> wrote: > > p.s. I started blogging about how I accessed solr directly in CF here: > > > http://fusion.dominicwatson.co.uk/2010/12/apache-solr-or-departing-from-confines.html > < > http://fusion.dominicwatson.co.uk/2010/12/apache-solr-or-departing-from-confines.html > > > and > > http://fusion.dominicwatson.co.uk/2010/12/apache-solr-part-ii-installing-solr.html > > < > http://fusion.dominicwatson.co.uk/2010/12/apache-solr-part-ii-installing-solr.html > >I've > not got around to finishing it off though so no code samples yet. > > I think that there would need to be more than just a custom cfsearch tag. > What Solr offers is quite a departure from the cfcollection, cfindex and > cfsearch paradigm. I started a github project, creatively named cfsolr, and > did some preliminary work - needless to say, time has got the better of me. > I might get back on that tonight ;) > > Dominic > > On 17 January 2011 10:30, Russ Michaels <[email protected]> wrote: > > > > > Seems a custom cfsearch tag might be useful here if Adobe have not > > implemented it very well. > > > > Russ > > > > -----Original Message----- > > From: Dominic Watson [mailto:[email protected]] > > Sent: 17 January 2011 09:08 > > To: cf-talk > > Subject: Re: CFSearch and SOLR > > > > > > I tried and ended up doing it directly. As far as I could see it was not > > possible. > > > > Using Solr directly wasn't too much bother and the benefits were more > than > > worth it. > > > > On 16 January 2011 23:25, Dan Baughman <[email protected]> wrote: > > > > > > > > Hi List, > > > > > > Has anyone setup any of the complex Facet stuff that Solr supports > > > through ColdFusion using CFSEARCH? > > > > > > It seems to me that you would have to interact with the SOLR server > > > directly via CFHTTP to get any of the decent features out of Solr. > > > > > > Specificaly, I want to specific some facet parameters to get facet > > > counts for a faceted search. My undestanding is that to do this you > > > have to throw some additional arguments into the URL arguments to > > > Solr's web service, not just passed them in as Criteria (which would > > > work if CFSEARCH didn't URL encode your criteria for you. > > > > > > Does anyone know how to update these arguments per search, or tell > > > CFSEARCH not to urlencode the criteria? > > > > > > Thanks, > > > Dan > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340929 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

