Sorry, that was just a typo.

/ search?q=*:*&fq=catid:{123}

Gives me the error. 

I think that { and } must be used in ranges for fq, and that's why I can't use 
them directly like this.

/Peter



-----Original Message-----
From: Upayavira [mailto:u...@odoko.co.uk] 
Sent: 23. oktober 2013 10:52
To: solr-user@lucene.apache.org
Subject: Re: fq with { or } in Solr 4.3.1

Missing a colon before the curly bracket in the fq?

On Wed, Oct 23, 2013, at 09:42 AM, Peter Kirk wrote:
> Hi
> 
> If I do a search like 
> /search?q=catid:{123}
> 
> I get the results I expect.
> 
> But if I do
> /search?q=*:*&fq=catid{123}
> 
> I get an error from Solr like:
> org.apache.solr.search.SyntaxError: Cannot parse 'catid:{123}':
> Encountered " "}" "} "" at line 1, column 58. Was expecting one of: "TO"
> ... <RANGE_QUOTED> ... <RANGE_GOOP> ...
> 
> 
> Can I not use { or } in an fq?
> 
> Thanks,
> Peter

Reply via email to