Re: case-insensitive index and queries

2012-11-08 Thread G.Long
Thank you for the tips. I looked at the index and the query and nothing seemed to be wrong. Then I realized that someone put a condition in the code after getting the results of the query. this condition removed docs which did not contain the exact words of the query. This condition was case se

Re: case-insensitive index and queries

2012-11-07 Thread Ian Lea
>From a glance the code looks OK, but there's lots you're not showing that could cause it not to work - whatever you mean by that. Fails to get hits on docs you think are in the index? Look at the index with Luke to see what actually has been indexed. Look at Query.toString() to see how the query

case-insensitive index and queries

2012-11-07 Thread G.Long
Hi :) I would like the "text" field of my index to be case-insensitive. I'm using a PerFieldAnalyzerWrapper with a standardAnalyzer for this field for both indexing and querying. I read that StandardAnalyzer uses LowerCaseFilter to lowercase the value of the field but when I run a query, it do