Re: Solr relevant results

2015-08-15 Thread Alexandre Rafalovitch
If I understood your question correctly, that's what I am suggesting to try. Notice that, as I mentioned earlier, that ignores all the complexity of similarity, ranking, etc that Solr offers. But it does not seem you need it in your particular case, as you are just searching for presence/absence o

Re: Solr relevant results

2015-08-14 Thread Brian Narsi
I see, so basically I add another field to the schema "CustomScore" and assign score to it based on values in other fields. And then just order by it. Is that right? On Fri, Aug 14, 2015 at 10:58 PM, Alexandre Rafalovitch wrote: > Clarification: In the client that is doing the _indexing_/sendin

Re: Solr relevant results

2015-08-14 Thread Alexandre Rafalovitch
Clarification: In the client that is doing the _indexing_/sending data to Solr. Not the one doing the querying. And custom URP if you can't change the client and need to inject that extra code on the Solr side. Sorry, for extra emails. Regards, Alex. Solr Analyzers, Tokenizers, Filters,

Re: Solr relevant results

2015-08-14 Thread Alexandre Rafalovitch
My suggestion was to do the mapping in the client, before you hit Solr. Or in a custom UpdateRequestProcessor. Because only your client app knows the order you want those things in. It certainly was not any kind of alphabetical. Then, you just sort by that field and Solr would not care about the c

Re: Solr relevant results

2015-08-14 Thread Brian Narsi
Search term is searched in Description. The search string is relevant in the context that the Description of returned records must contain the search string. But when several records Description contains the search string then they must be ordered according to the values in Code and Prefer. I und

Re: Solr relevant results

2015-08-14 Thread Alexandre Rafalovitch
What's the search string? Or is the search string irrelevant and that's just your compulsory ordering. Assuming anything that searches has to be returned and has to fit into that order, I would frankly just map your special codes all together to some sort of 'sort order' number. So, Code=>C = 4000