date window

2007-05-17 Thread James O'Rourke
Hi All, I've been thinking about this problem for some time now. I'm trying to figure out a way to store date windows in lucene so that I can easily filter as follows. A particular document can have several date windows. Give a specific date, only return those documents where that date fa

highlighting with WildcardQuery

2006-10-13 Thread James O'Rourke
Is there anyway to do highlighting when using a WildcardQuery when there is no IndexReader available? I simply want to do it with a chunk of text, but it fails because the WildcardQuery needs to call rewrite - but doesn't know about the IndexReader. Code (using PyLucene-2.0.0 - can translat

Re: Problem searching

2006-09-28 Thread James O'Rourke
what is produced. You'll be glad you did. You can also look at the query. I don't remember whether toString prints the query or there's another call, but you can probably find it without too much trouble. Hope this helps Erick On 9/28/06, James O'Rourke <[EMAIL PROTECT

Problem searching

2006-09-28 Thread James O'Rourke
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 pars