lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Kustov <>
Subject Re: Solr large boolean filter
Date Mon, 17 Jun 2013 16:35:59 GMT

Menawhile I'm currently trying to write custom QParser which will use

So I'm using query like*:*&fq={!mqparser}id:%281%202%203%29

And I couldn't make it work - I just couldn't find a proper constructor and
also not sure that i'm filtering appropriately. 

private class MyQParser { 

List<String> idsList;  

MyQParser(String queryString, SolrParams localParams, SolrParams solrParams,
SolrQueryRequestsolrQueryRequest) throws SyntaxError {
            super(queryString,localParams,solrParams, solrQueryRequest);
             idsList = // extract ids from params

        public Query parse() throws SyntaxError {
                   FieldCacheTerms filter = new
// first problem id is just an int in my case, but this seems like the only
normal constructor
                   return new FilteredQuery(new BooleanQuery(), filter); 
// my goal here is to get only filtered data, but does BooleanQuery() equals
to *:*? 

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message