I have weird results when I create documents with input such as
burmilla2.jpg.
Here is some example code:
Document doc = new Document()
doc.add(new Field("combined", "jorourke" + " " + "burmilla2.jpg" ,
Field.Store.YES, Field.Index.TOKENIZED))
indexWriter.addDocument(doc)
QueryParser parser = new QueryParser("combined", new StandardAnalyzer())
parser.setDefaultOperator(QueryParser.Operator.AND)
Query q = parser.parse("jorourke burmilla2")
indexSearch.search(q, Sort.RELEVANCE)
this returns no results
where as:
Query q = parser.parse("jorourke burmilla")
does return the document!!
Anyone have any ideas?
James
PS. The code is a rough translation but you get the idea. For some
reason I think the index doesn't like "."'s in words.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]