With Solr, you would need to pre-compute any computations in query
expressions and index them for direct matching. So, you would need a field
which was indexed with the sum of the values of the other two fields.
-- Jack Krupansky
-----Original Message-----
From: blopez
Sent: Wednesday, November 07, 2012 1:50 AM
To: solr-user@lucene.apache.org
Subject: About solr fields (dynamic query)
Hi all,
I'm facing some problems with solr fields at query time. Let's see a
simplified example.
I have the fields A, B and C. In a relational DB, it's possible to launch a
(let's say dynamically) query: SELECT * FROM wherever WHERE wherever.A +
wherever.B = wherever.C
I'm trying to do this in Solr but I don't know if it's possible. Would be
something like C:A+B but, obviously, Solr takes 'A+B' as a string and it
does not work.
Is there any approach to do this?
Regards,
Borja.
--
View this message in context:
http://lucene.472066.n3.nabble.com/About-solr-fields-dynamic-query-tp4018684.html
Sent from the Solr - User mailing list archive at Nabble.com.