lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Ryan <benjamin.r...@manchester.ac.uk>
Subject restricting a query by a "set" of field values
Date Mon, 29 Jul 2013 14:33:43 GMT
Hi,
               Is it possible to construct a query in SOLR to perform a query that is "restricted"
to only those documents that have a field value in a particular set of values similar to what
would be done in POstgres with the SQL query:

               SELECT date_deposited FROM stats
               WHERE date BETWEEN '2013-07-01 00:00:00' AND '2013-07-31 23:59:00'
               AND collection_id IN (....)

               In my SOLR schema.xml date_deposited is a TrieDateField and collection_id is
an IntField

Regards,
               Ben

------------------------------------------------------------------
Dr Ben Ryan
Jorum Technical Manager

5.12 Roscoe Building
The University of Manchester
Oxford Road
Manchester
M13 9PL
Tel: 0160 275 6039
E-mail: benjamin.ryan@manchester.ac.uk<https://outlook.manchester.ac.uk/owa/redir.aspx?C=b28b5bdd1a91425abf8e32748c93f487&URL=mailto%3abenjamin.ryan%40manchester.ac.uk>
------------------------------------------------------------------


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