Thanks a lot for the solution / explanation. Saved the day Erik.

Summary

Observation: Using a wild carded search term with queryParser and the
WhitespaceAnalyser returned no hits when when hits where expected.

Reason: This was caused by the default behaviour of queryParser to lower
case wildcarded search terms.

Resolution: To use an instance of query parser setting the instances
setLowercaseWildcardTerms to false.

Example:    QueryParser parser = new QueryParser("field", new
            StandardAnalyzer());
            parser.setLowercaseWildcardTerms(false);



     Solution provided by Erik Hatcher




     
-------------------------------------------------------------------------------------------------

     Get the best from British Airways at ba.com
     http://www.ba.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to