lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Rudy <>
Subject Boolean expression for no terms OR matching a wildcard
Date Thu, 10 Jul 2008 21:52:45 GMT
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?

   - Ron

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

View raw message