Are you setting the Similarity before indexing, too, on the IndexWriter?
On Aug 19, 2009, at 4:20 PM, Chris Salem wrote:
Hello,
I'm trying to write a custom scorer that only uses the term
frequency function from the DefaultSimilarity class, the problem is
that documents with lower frequenci
Hello,
I'm trying to write a custom scorer that only uses the term frequency function
from the DefaultSimilarity class, the problem is that documents with lower
frequencies are returning with higher scores than documents with higher
frequencies. Here's the code:
searcher.setSimilarity(new Defau
But in that case, I assume Solr does a commit per document added.
Lets say I wanted to index a collection of 1 million pages, would it
take much longer if I comited at each insertion rather than comiting at
the end?
Daniel Shane
Grant Ingersoll wrote:
On Aug 13, 2009, at 10:33 AM, Daniel
Let's assume I have an index structured as below
name
species
color
max
cat
grey
sam
dog
brown
lucy
cat
white
.
.
.
.
.
.
poe
dog
blond
joe
cat
red
pam
dog
brown
The species and color fields are tokenized, indexed and stored.
Now let's assume that I want to change the