lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy" <>
Subject RE: Is this query possible?
Date Wed, 29 Jul 2009 19:09:44 GMT
Either you have to reindex "Index A" and add a "visible" field with values
both 0 and 1, or make two seperate searches.


-----Original Message-----
From: Andrei Alecu [] 
Sent: Wednesday, July 29, 2009 9:54 PM
Subject: Is this query possible?

Hello all,

I have a MultiSearcher searching two separate indexes.

One of the indexes (index B) has some extra terms in its documents 
compared to the other (index A).

Consider this scenario:

Index A documents:
field: fulltext

Index B documents:
field: fulltext
field: visible

I want for a query such as :

fulltext:"car" AND visible:1

To return all the matching "car" results in Index A, thus ignoring the 
'visibile' constraint if it's not defined for the document. How can I do 
that? Right now the results completely skip Index A because of no 
matching 'visible' field.


View raw message