Re: Using lucene queries to search StringFields

2015-06-19 Thread Sheng
1. What is the analyzer are you using for indexing ? 2. you cannot fuzzy match field name - that for sure will throw exception 3. I would start from a simple, deterministic query object to rule out all unlikely possibilities first before resorting to parser to generate that for you. On Fri, Jun 1

Re: Using lucene queries to search StringFields

2015-06-19 Thread Ahmet Arslan
Hi, Why don't you create your query with API? Term term = new Term("B", "1 2"); Query query = new TermQuery(term); Ahmet On Friday, June 19, 2015 9:31 AM, Gimantha Bandara wrote: Correction.. second time I used the following code to test. Then I got the above IllegalStateException issue. w