You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by zayhen <al...@gmail.com> on 2009/01/14 14:30:09 UTC
Question about query sintax
Hello,
If I query for 'ferrar*' on my index, I will get 'ferrari' and 'red ferrari'
as a result. And that's fine. But if I try to query for 'red ferrar*', I
have to put it between double quotes as I want to grant that it will be used
as only one term, but the '*' is being ignored, as I don't get any result.
What should be the apropriate query for it?
FYI I am querying one standard text field.
-----
http://www.nabble.com/RPG-da-Ilha-f35514.html RPG da Ilha
--
View this message in context: http://www.nabble.com/Question-about-query-sintax-tp21455970p21455970.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Question about query sintax
Posted by Chris Hostetter <ho...@fucit.org>.
: If I query for 'ferrar*' on my index, I will get 'ferrari' and 'red ferrari'
: as a result. And that's fine. But if I try to query for 'red ferrar*', I
: have to put it between double quotes as I want to grant that it will be used
: as only one term, but the '*' is being ignored, as I don't get any result.
: What should be the apropriate query for it?
when you add the double quotes you tell solr that the * should now be
treated as a literal, and it's no longer a special character. it is
possible to have query structures like what you are interested in, but i
don't think it's possible to express it using the Lucene syntax.
-Hoss