Rajiv,
Have a look at the details provided by IndexSearcher.explain() for
those documents, and you'll get some insight into the factors used to
rank them. Since both scores are 1.0, you'll probably want to
implement your own custom Similarity and override the lengthNorm() to
adjust that
Ok, this is how I'm indexing. Both in indexing and searching I'm using
SimpleAnalyzer()
String loc = "New York, NY";
doc.add(new Field("location", loc, Field.Store.NO, Field.Index.TOKENIZED));
String loc2 = "New York Mills, NY";
doc.add(new Field("location", loc2, Field.Store.NO, Field.Index.TOK
I guess so, but without any information about your code nobody can tell what.
If you provide more information you willl get help!!
regards simon
On 8/1/06, Rajiv Roopan <[EMAIL PROTECTED]> wrote:
Hello, I have an index of locations for example. I'm indexing one field
using SimpleAnalyzer.
doc1