lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: Solr comparsion between two columns
Date Tue, 03 May 2016 05:33:08 GMT
Function queries if you want to do this on a fly:
https://cwiki.apache.org/confluence/display/solr/Function+Queries
'if' and 'sub' most likely

However, if you are going to do this often for the same fields, you
may be better off calculating this during indexing using
UpdateRequestProcessors. I don't think we have one for math directly
(full list here:
http://www.solr-start.com/info/update-request-processors/) , but you
could use a Scripting one and implement it that way.

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 3 May 2016 at 15:14, kavurupavan <kavurupavan@gmail.com> wrote:
> Compare two columns in solr if two fields are equal display true or else
> false.
>
> CASE WHEN o_is_follow = o_follow_id THEN 'TRUE' ELSE 'FALSE'. Please help
> me. Thanks in advance.
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-comparsion-between-two-columns-tp4274155.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message