lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: getting data from only one database
Date Thu, 01 Sep 2011 23:34:11 GMT

: we created a solr which is connected to two databases and we created a
: jquery auto two databases we r having keywords and it is
: default beside the search button we r ctearing more more
: drop down list and nmaed the two databases when the user click one one
: database and enter a search keyword we have to get the search results
: for the keyword from the selected database not fron two
: datbases......

if i understand your question, you are using DIH to index differnet types 
of documents -- some from database "one", and some from database "two"
-- and in some cases (autocomplete?) you only want results from documents 
that were indexed from database "one".

In that case -- you need to note which datbase the docs came from when you 
indexed them, which can be done by adding any field you wnat and recording 
any data you want in it about the source of the data, and then filtering 
on this at query time.

These two docs might be helpful...


View raw message