On 4/8/2014 1:48 PM, Mark Olsen wrote:
Solr version 4.2.1
I'm having an issue using a "join" query with a range query, but only when the
query is wrapped in parens.
This query works:
{!join from=member_profile_doc_id to=id}language_proficiency_id_number:[30 TO
50]
However this query does not (just wrapping with parens):
({!join from=member_profile_doc_id to=id}language_proficiency_id_number:[30 TO
50])
The {!join...} part of that is a localParam. It must precede the entire
query. If you want to add parens, here's how you would need to do it:
{!join from=member_profile_doc_id
to=id}(language_proficiency_id_number:[30 TO 50])
With the left parenthesis where you placed it, the localParam is
considered part of the query itself. It becomes incorrect Solr syntax
at that point.
Thanks,
Shawn