lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suryasnat Das <>
Subject Multiple values for custom fields provided in SOLR query
Date Mon, 06 Jul 2009 15:31:10 GMT
I have a requirement in which i need to have multiple values in my custom
fields while forming the search query to SOLR. For example,
fileID is my custom field. I have defined the fileID in schema.xml as <field
name="fileID" type="string" indexed="true" stored="true" required="true"
Now fileID can have multiple values like 111,222,333 etc. So will my query
be of the form,


where apple is my search query string. I tried with the above query but it
did not work. SOLR gave invalid query error.
Basically the requirement is , if fileIDs are provided as search parameter
then search should happen on the basis of fileID.

Is my approach correct or i need to do something else? Please, if immediate
help is provided then that would be great.

Suryasnat Das

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message