Have you tried encoding it with %3F?

firstname:*%3F*

On 2010-11-04, at 1:44 AM, Stephen Powis wrote:

> I'm having difficulty properly escaping ? in my search queries.  It seems as
> tho it matches any character.
> 
> Some info, a simplified schema and query to explain the issue I'm having.
> I'm currently running solr1.4.1
> 
> Schema:
> 
> <field name="id" type="sint" indexed="true" stored="true" required="true" />
> <field name="first_name" type="string" indexed="true" stored="true"
> required="false" />
> 
> I want to return any first name with a Question Mark in it
> Query: first_name: *\?*
> 
> Returns all documents with any character in it.
> 
> Can anyone lend a hand?
> Thanks!
> Stephen

Reply via email to