Setting FuzzyConfig's prefixLength ?
I'd like to change Lucene's FuzzyConfig prefixLength from it's default value of 0. Is there a way to configure that via Solr somehow? I've noticed references on the list to people recompiling lucene from source in order to change this value, and I'm hoping not to need to resort to the same. Thanks in advance, Phill
Per-User Sorting on an ExternalFileField
I'm trying pretty hard to come up with a solution that lets me sort by per-user scores that I calculate based on my data. Today, I'm trying to use a combination of ExternalFileField and dynamic fields, where the presumption is that each user might have their own file full of scores. I think the fields are hooked up okay, but I can't sort on them because it appears ExternalFileField explicitly doesn't support this operation. SEVERE: java.lang.UnsupportedOperationException at org.apache.solr.schema.ExternalFileField.getSortField(ExternalFileField.java:91) I'm using Solr 3.5. Does anyone have a suggestion as to how to end up adding this extra dimension so that I can do per-user relevance? It seems like an oft-asked, rarely-answered question. Thanks in advance, Phill
Re: Per-User Sorting on an ExternalFileField
So, I did just issue: sort=sub(my_user_score_field,0)+desc It got me past the error, but still doesn't appear to be actually using the values to sort. Any ideas as to why? Phill On Thu, Apr 26, 2012 at 4:35 PM, Stephane Bailliez sbaill...@gmail.comwrote: On Fri, Apr 27, 2012 at 12:07 AM, Phill Tornroth famousactr...@gmail.com wrote: I'm using Solr 3.5. Does anyone have a suggestion as to how to end up adding this extra dimension so that I can do per-user relevance? It seems like an oft-asked, rarely-answered question. Use a function that make use of your externalfilefield and alter the score so that you can sort on the score ?
Sorting Index Results by User's Score
I'm puzzled on whether or not Solr is the right system for solving this problem I've got. I'm using some Solr indexes for autocompletion, and I have a desire to rank the results by their value to the requesting user. Essentially, I'll tally the number of times the user has chosen particular results, and I have a need to include that value in the process of sorting and limiting results. This doesn't seem like a request that would be un-typical, but I'm wondering how Solr experts suggest it be done? It seems impractical to hold my scores elsewhere and ask Solr for unlimited results and then do the ordering/limiting on my side.. but I don't see an obvious way to do this within Solr itself, though the JOIN functionality and the Function Query stuff look like they might be a part of the right solution. Any help would be greatly appreciated. Thanks! Phill