You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ali Husain <al...@outlook.com> on 2017/08/07 19:10:32 UTC
Custom FunctionQuery in Solr
I'm trying to implement something like this in Solr 6.6
http://www.solrtutorial.com/custom-solr-functionquery.html
Custom Solr FunctionQueries - Solr Tutorial.com<http://www.solrtutorial.com/custom-solr-functionquery.html>
www.solrtutorial.com
Custom Solr FunctionQueries. Solr FunctionQueries allow you to modify the ranking of a search query in Solr by applying functions to the results.
The goal is to take a field called 'foo' from all the documents and modify that field with a custom function.
Has anyone been able to do this successfully? I can't find any helpful documentation. All the stuff I've found is broken and doesn't work.
Thank you,
Ali
Re: Custom FunctionQuery in Solr
Posted by Erick Erickson <er...@gmail.com>.
bq: The goal is to take a field called 'foo' from all the documents
and modify that field with a custom function.
I don't really understand that. You use the contents of the field to
modify the score of a doc with a custom function query.
If you want to modify the field that's returned with a document, you
use a DocTransformer.
If you want to modify the contents of a field during indexing,
consider a ScriptUpdateProcessor.
_How_ does it fail? What does your code look like? How is it broken?
Details matter.
You might review:
https://wiki.apache.org/solr/UsingMailingLists
Best,
Erick
On Mon, Aug 7, 2017 at 12:10 PM, Ali Husain <al...@outlook.com> wrote:
> I'm trying to implement something like this in Solr 6.6
>
>
> http://www.solrtutorial.com/custom-solr-functionquery.html
>
> Custom Solr FunctionQueries - Solr Tutorial.com<http://www.solrtutorial.com/custom-solr-functionquery.html>
> www.solrtutorial.com
> Custom Solr FunctionQueries. Solr FunctionQueries allow you to modify the ranking of a search query in Solr by applying functions to the results.
>
> The goal is to take a field called 'foo' from all the documents and modify that field with a custom function.
>
>
> Has anyone been able to do this successfully? I can't find any helpful documentation. All the stuff I've found is broken and doesn't work.
>
>
> Thank you,
>
> Ali