Re: custom scorer

2009-08-19 Thread Grant Ingersoll
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

custom scorer

2009-08-19 Thread Chris Salem
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

Re: Is there a way to check for field "uniqueness" when indexing?

2009-08-19 Thread Daniel Shane
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

Modifying a tokenized field entry

2009-08-19 Thread Matt Dufrasne
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