lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATL (Mats Lindberg)" <>
Subject how to find field that has any value
Date Wed, 06 Oct 2004 20:27:21 GMT
i have a probably simple question for some of you.
Since lucene does not allow a query to start with a wild card (* or ?)
how would i find all documents in lets say field test that has something
in that field, or is not empty.
my first thought would be to do something like this.
test:________                (cause the value ______ isn't very likely
to be present)
test:*                            (would be the correct way, i guess,
but lucene doesn't allow that)
does anyone have a greater idea.
Best regards,
Mats Lindberg

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