Alex & Oleg, Look at MemoryIndex in Lucene's contrib. It's the closest thing to what you are looking for. What you are describing is sometimes referred to as "prospective search", sometimes "saved searches", and a few other names.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: AlexElba <ramal...@yahoo.com> > To: solr-user@lucene.apache.org > Sent: Wednesday, June 24, 2009 7:47:20 PM > Subject: Reverse querying > > > Hello, > > I have problem which I am trying to solve using solr. > > I have search text (term) and I have index full of words which are mapped to > ids. > > Is there any query that I can run to do this? > > Example: > > Term > "3) A recommendation to use VAR=value in the configure command line will > not work with some 'configure' scripts that comply to GNU standards > but are not generated by autoconf. " > > Index docs > > id:1 name:recommendation > ... > id:3 name:GNU > id:4 name food > > after running "query" I want to get as results 1 and 3 > > Thanks > > -- > View this message in context: > http://www.nabble.com/Reverse-querying-tp24194777p24194777.html > Sent from the Solr - User mailing list archive at Nabble.com.