if (str.indexOf('-') == -1) {
q = new TermQuery(new Term(iv_lookupFieldName, str));
topDoc = iv_searcher.search(q, iv_maxHits);
}
else { // needed the KeyworkAnalyzer for situations where the hypen was included in the f-word
QueryParser query = new QueryParser(Version.LUCENE_30, iv_lookupFieldName, new KeywordAnalyzer());
try {
topDoc = iv_searcher.search(query.parse(str.replace('-', ' ')), iv_maxHits);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();