The ends of a range query are indeed single terms - they are not queries or any term that would analyze into multiple terms.

In some cases you might want composite values as strings so that you can do a range on terms.

For example, city + ", " + state as a string.

-- Jack Krupansky

-----Original Message----- From: SolrLover
Sent: Wednesday, August 07, 2013 5:53 PM
To: solr-user@lucene.apache.org
Subject: Is it possible to use phrase query in range queries?

I am trying to use range queries to take advantage of having constant scores
in multivalued field but I am not sure if range queries support phrase
query..

Ex:

The below range query works fine.
<str name="q">
_query_:"address:([Charlotte TO Charlotte])"^5.5
</str>

The below query doesn't work,

<str name="q">
_query_:"address:([Charlotte NC TO Charlotte NC])"^5.5
</str>



--
View this message in context: http://lucene.472066.n3.nabble.com/Is-it-possible-to-use-phrase-query-in-range-queries-tp4083132.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to