Have a look at the MoreLikeThis component - http://wiki.apache.org/solr/MoreLikeThis
Cheers Avlesh On Mon, Jul 20, 2009 at 8:05 PM, James T <codetester.codetes...@gmail.com>wrote: > Hi, > > I have a specific requirement for searching and looking for some help from > the community on how to achieve it using solr: > > I need to index 1million + documents. Each document contains ( among other > fields ) 3 fields representing the category which that doc belongs to. For > example ( a very simplied case to make it easier to explain ) > > Doc 1 > Place : NY, Paris, Tokyo > Authors: AuthorA, AuthorB, AuthorC, AuthorD > Tags: tagA, tagB, ballon > > Doc 2 > Place : Bangkok > Authors: AuthorD > Tags: tagZ > > So each doc can contain multiple values for each of above fields ( place, > author, tags ) > > Now the searching requirements is that, by constrainting on one of the > value, I need a search on related fields. > > Example: By giving a constraint "Author: AuthorD", I need a search on the > search space: > Place: Ny, Paris, Tokyo and London > Author: AuthorA, AuthorB, AuthorC, > Tags: tagA, tagB and tagZ > ( The above result is generated by the fact that every item in the result > has atleast 1 doc in common with "AuthorD" ) > > So as I am typing "Ba", I need to get Ballon and Bangkok ( These Tags and > Places have atleast 1doc where it also had AuthorD ) > > Is such a system possible to implement using solr? > > Thanks! >