Search for related content

2007-12-29 Thread Vladimir Garvardt
Hello. I'm new to Solr and exploring its capabilities to use in my project. I already implemented simple search and highlighting via Solr. Now I need to implement search for related content. As I understand the best way to do it is MoreLikeThis that I found http://wiki.apache.org/solr/MoreLike

Re: Search for related content

2007-12-29 Thread Otis Gospodnetic
Instead of: http://localhost:8983/solr/select?q=nid:7280&mlt=true&mlt.fl=title,body&mlt.mindf=1&mlt.mintf=1&fl=nid,title,score Try: http://localhost:8983/solr/mlt?q=nid:7280&mlt=true&mlt.fl=title,body&mlt.mindf=1&mlt.mintf=1&fl=nid,title,score If that doesn't work, look at your solrconfig.xml a

Re: big perf-difference between solr-server vs. SOlrJ req.process(solrserver)

2007-12-29 Thread Otis Gospodnetic
Hi Geert-Jan, Have you considered storing this data in an external data store and not Lucene index? In other words, use the Lucene index only to index the content you need to search. Then, when you search this index, just pull out the single stored fields, the unique ID for each of top N hits

Re: Search query have AND operator with facet search not working

2007-12-29 Thread Otis Gospodnetic
Laxmilal, Make that q=cd+AND+media:movies (this is just URL-encoding to be sure) If that still returns 0 hits, try just q=media:movies If that still returns 0 hits, you have your answer. Hm, what's that qt=LM at the end? LM? Eh, eh, some custom handler? If so, perhaps it is the source of the

Re: RAMDirectory

2007-12-29 Thread Otis Gospodnetic
Hi, If you have enough RAM to load the whole index into RAM using RAMDirectory, then you could also just use tmpfs to load your index in RAM... tmpfs exists under Linux, Solaris, and BSD, I believe. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message F

Re: Search for related content

2007-12-29 Thread John Stewart
Isn't MoreLikeThis only available in the 1.3-dev builds? jds On Dec 29, 2007 10:07 AM, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > Instead of: > > http://localhost:8983/solr/select?q=nid:7280&mlt=true&mlt.fl=title,body&mlt.mindf=1&mlt.mintf=1&fl=nid,title,score > > Try: > > http://localhost:898

Re: Search for related content

2007-12-29 Thread Vladimir Garvardt
Yes, have just noted it. Added handler to solrconfig.xml, got java.lang.ClassNotFoundException: solr.MoreLikeThisHandler, looked at javadoc for this and found it. Will try to download 1.3-dev and try mlt there. Thanks a lot. John Stewart wrote: Isn't MoreLikeThis only available in the 1.3-dev