We are having a problem running searches on an index after upgrading to 
2.4 and using the new Field.setOmitTf() function.  The index size has 
been dramatically reduces and even the search performace is better.  But 
searches do not return any results if searching for something that has a 
space in it.

Thats how I am running the search:

    Sort sort = new Sort(new SortField("DATECREATED", SortField.STRING, 
true));
        QueryParser queryParser = new QueryParser("", new 
WhitespaceAnalyzer());
        Query query = queryParser.parse("SQL SERVER");
        TopFieldDocs tfd = indexSearcher.search(query, null, 9999999, sort);

this query does not return results if query string has an space, i.e. 
"SQL SERVER".  This behaviour changes if we dont use 
Field.setOmitTf(true) while indexing and search returns right results.  
Please advice how to acheive reduced index size bby using 
Field.setOmitTf() as well as searching strings with space between words?

thanks


This electronic mail message and any attachments may contain information which 
is privileged, sensitive and/or otherwise exempt from disclosure under 
applicable law. The information is intended only for the use of the individual 
or entity named as the addressee above. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution (electronic 
or otherwise) or forwarding of, or the taking of any action in reliance on, the 
contents of this transmission is strictly prohibited. If you have received this 
electronic transmission in error, please notify us by telephone, facsimile, or 
e-mail as noted above to arrange for the return of any electronic mail or 
attachments. Thank You.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to