lizzie
lizzie

Reputation: 1656

solr search within subset defined by list of keys

Is it possible to perform a search with solr within a subset of data? I am using solr combined with tokyo tyrant in python

I read Searching within a subset of data - Solr but I guess it does not really fit my problem because I am not using solr.NET

What I want is to:

  1. find the elements of the data set with code = 'xxxx' and
  2. I want to perform the search within the a subset of data : data whose id are in a given list / or with id startswith 'yy'

So 1 is not a problem but I do not know how to do 2

thanks for your help

Upvotes: 0

Views: 867

Answers (2)

N4553R
N4553R

Reputation: 188

if you have a server their's an administration panel where you can do some request.

but all you have to do to make request is to send an http request with good parameters, basis are explained here.

Upvotes: 1

Jayendra
Jayendra

Reputation: 52779

Does query like this work for you q=id:(id1 OR id2 OR id3) OR id:yy*
You can use id:(id1 OR id2 OR id3) to search for ids in the id field and id:yy* for the prefix query to check for ids starting with yy

Upvotes: 1

Related Questions