lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Seltzer <>
Subject Lucene 3.5 Query Parser Question
Date Wed, 11 Jul 2012 16:40:51 GMT

I'm interested in searching a MemoryIndex to find occurrences of HashTags.

To do this I'm trying to use the following query:
#* -#[0 TO 9]

My goal with this query is to look for any word starting with "#" except
for words like "#1".

However, when I parse this query, the query parser turns it into this:
+content:#* -content:# +content:[0 TO 9]

Effectively the QueryParser is splitting up the "#" and the "[0 TO 9]"

The same behavior occurs when I run this: #* -(#[0 TO 9])

Can anyone help me rewrite this query?

Thanks so much


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

View raw message