Similarity for Span and Boolean query

2007-01-06 Thread J.Zhu
Hi, all, The equation for similarity is given on this web page: http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similari ty.html I would like to know what are the equations for similarity if the query is a span or boolean query. Jianhan

Re: Lucene search returns Zip file Name

2007-01-06 Thread Erick Erickson
This is a confusing question. You have to create the index in the first place. You can't just give the zip file to Lucene and expect it to do all your work for you. Somewhere, you have to have code like Document doc = new Document(); doc.add(new Field("fieldname1", "stuff to store", Field.Store.