Re: Lucene 3.5 Query Parser Question

2012-07-11 Thread Ian Lea
I think you'll have to build the query up in code. RegexQuery in the contrib queries package should be able to take care of #[0-9]. BooleanQuery bq = new BooleanQuery(); PrefixQuery pq = new PrefixQuery(...) // # RegexQuery rq = new RegexQuery(...) // #[0-9] bq.add(pq, ); bq.add(rq, ...); an

Lucene 3.5 Query Parser Question

2012-07-11 Thread Dave Seltzer
Hello, 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 turn