lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Rudy" <>
Subject Re: Boolean expression for no terms OR matching a wildcard
Date Mon, 14 Jul 2008 13:04:55 GMT
Can I assume that since nobody replied to this that there's no way to
perform this kind of search?  What I think I need is two different
types of conditions:

1) a wildcard conditional that is forced to match against all indexed
values for a field
2) a conditional that matches when NO values at all are indexed for a field


On Thu, Jul 10, 2008 at 5:52 PM, Ronald Rudy <> wrote:
> I need to perform a query for a term that may or may not have values, and I
> need to check for the conditions where either no terms are indexed OR any
> and ALL indexed terms match a wildcard.
> For example, say the following values were indexed as terms in the field
> "myfield" in the three documents:
> 1) terms "abc123" and "abcdef123"
> 2) terms "abc123", "def123" and "abcdef123"
> 3) no terms
> I want my query with a wildcard search of "+myfield:abc*123" to match on
> both 1 and 3 but NOT 2.
> Is this possible?
> Thanks,
>  - Ron

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message