I was able to form a TermQuery as below,

Query query=new TermQuery(new Term("id","value"));

I am trying to form a filter query something that returns just the filter
that can be used with any query type (q or fq).

                if (qstr == null || qstr.trim().length() < 1) {
                        return new QParser(qstr, localParams, params, req) {
                                @Override
                                public Query parse() throws SyntaxError {
                                        *return null;*
                                }
                        };
                }

As of now I am returning null, instead I am trying return query object with
filter (ex: *:*). Can someone let me know how to implement that?





--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-form-return-filter-Query-object-tp4077067.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to