Something smells fishy here... why do you think you need to do this using nested queries and parameter names?

Sounds like you're engaging in "premature complication". Try simpler approaches first.

-- Jack Krupansky

-----Original Message----- From: Noob
Sent: Wednesday, August 07, 2013 6:45 PM
To: solr-user@lucene.apache.org
Subject: How to pass ranges / values to form query in search component?

Hi,

I am currently passing the query by passing the values to my search
component.

For ex:

http://localhost:8983/solr/select?firstname=charles&lastname=dawson&qt=person

Person search component is configured to accept the values and form the
query

<str name="q">
       (
         _query_:"{!wp_dismax qf=fname^8.3 v=$firstname}" OR
         _query_:"{!wp_dismax qf=lname^8.6 v=$lastname}"
       )
</str>

Now I am trying to figure out a way to pass the values / ranges like below
but I am getting syntax errors..

Ex:

<str name="q">
(
         _query_:"{!v=fname:$firstname}" OR
         _query_:"{!v=fname:([$firstname to $firstname])^8.3}"
)

Can someone let me know if theres a way to overcome this issue?






--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-pass-ranges-values-to-form-query-in-search-component-tp4083141.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to