Re: Search matching

2006-08-01 Thread Erik Hatcher
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

Re: Search matching

2006-08-01 Thread Rajiv Roopan
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

Re: Search matching

2006-08-01 Thread Simon Willnauer
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