lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "no spam" <>
Subject Re: lucene search options
Date Mon, 08 Dec 2008 15:24:48 GMT
The reason our users want to do this is because they want to search for
instances where certain negative conditions are true.  My client is the news
industry and this is metadata for things like reporter, type, etc.
 Sometimes you want -reporter:mark for example and this is the only criteria
to search against the index.

Am I thinking about this wrong?

I did try using the MatchAllDocsQuery class and it expands to something like

summary:matchalldocsquery -reporter:*mark*

but I don't get any results which is not what I expect for my does not
contain query above.

On Sat, Dec 6, 2008 at 11:06 PM, Anshum <> wrote:

> Hi,
> An easy way to do that would be to index a particular term with all docs
> e.g. "dummyword" could be indexed for all documents as a value for a
> dummyfield or an existing field.
> This way lets assume you want to fetch results for -filed1:jakarta
> You could search for dummyfield:"dummyword" AND NOT filed1:jakarta
> This is just one of the solution, though I still would not understand if
> there's a logical reason for fetching such results.:)
> --

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message