lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samd <sdoyl...@yahoo.com>
Subject Re: Field names with : in it.
Date Mon, 06 Oct 2008 21:22:30 GMT

Hello and thanks for the response.

Yes the title should have been values. I'll take at look at the link you
provided.

Thanks again!

Erick Erickson wrote:
> 
> You have to escape it in a query. And did you mean to title your
> post as field *names*? because I can't imagine how that would
> work. Field *values*, sure....
> 
> See http://lucene.apache.org/java/docs/queryparsersyntax.html,
> search for "escape"
> 
> On Mon, Oct 6, 2008 at 3:54 PM, samd <sdoyle_2@yahoo.com> wrote:
> 
>>
>> It appears if a search field value entered contains a ':' causes some
>> issues
>> since if I have a field named
>>
>> a.b.c and the user enters a value of foo the constructed query through
>> the
>> api generates something like
>> +a.b.c:foo
>>
>> If they enter in a value of foo:bar
>>
>> I get +foo:bar where foo is substituted for the correct fieldname.
>>
>> What is the best way to deal with this?
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Field-names-with-%3A-in-it.-tp19845142p19845142.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Field-names-with-%3A-in-it.-tp19845142p19846712.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message