lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias <mathias.mahlkne...@innofuture.com>
Subject Re: OR two joins
Date Fri, 21 Oct 2016 11:40:32 GMT
Yonik Seeley wrote
> On Fri, Oct 21, 2016 at 7:07 AM, Mathias
> &lt;

> mathias.mahlknecht@

> &gt; wrote:
>> With the first version I get the fallowing error:
>>
>> "org.apache.solr.search.SyntaxError: Cannot parse
>> '(type:EM_PM_Timerecord':
>> Encountered \"
> <EOF>
> \" at line 1, column 22.\nWas expecting one of:\n
>> 
> <AND>
>  ...\n    
> <OR>
>  ...\n    
> <NOT>
>  ...\n    \"+\" ...\n    \"-\" ...\n
>> 
> <BAREOPER>
>  ...\n    \"(\" ...\n    \")\" ...\n    \"*\" ...\n    \"^\" ...\n
>> 
> <QUOTED>
>  ...\n    
> <TERM>
>  ...\n    
> <FUZZY_SLOP>
>  ...\n    
> <PREFIXTERM>
>  ...\n
>> 
> <WILDTERM>
>  ...\n    
> <REGEXPTERM>
>  ...\n    \"[\" ...\n    \"{\" ...\n
>> 
> <LPARAMS>
>  ...\n    \"filter(\" ...\n    
> <NUMBER>
>  ...\n"
>>
>> With the second version I get:
>>
>> "undefined field &q1=type"
> 
> 
> q1 should be a separate query parameter, so you may have a client
> error somewhere
> 
> Try this form:
> 
> &q={!join from=project_uuid to=id v=$q1} OR {!join
> from=project_uuid to=id v=$q2}
> &q1=type:EM_PM_Timerecord AND
> created:[2015-01-01T01:00:00Z TO 2016-01-01T01:00:00Z]
> &q2=type:EM_CM_Request_Member AND
> created:[2015-01-01T01:00:00Z TO 2016-01-01T01:00:00Z]
> 
> -Yonik

Thank you, this works great.

Mathias



--
View this message in context: http://lucene.472066.n3.nabble.com/OR-two-joins-tp4302415p4302455.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message