Hi.

I'm writing my custom faceted request handler.

But I have a problem like this;  when i call
http://localhost:8983/solr/select/?qt=cfacet&q=%2BitemTitle:nokia%20%2BcategoryId:130&start=0&limit=3&fl=id,
itemTitle
i'm getiing all fields instead of only id and itemTitle.

Also i'm gettting no result when i give none null filter parameter in
getDocListAndSet(...).

public class MyCustomFacetRequestHandler extends StandardRequestHandler {

    public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse
rsp) throws Exception {
        try {

            SolrParams solrParams = req.getParams();
            Query q = QueryParsing.parseQuery(solrParams.get("q"),
req.getSchema());
            DocListAndSet results = req.getSearcher().getDocListAndSet(q,
(Query)null, (Sort)null, solrParams.getInt("start"),
solrParams.getInt("limit"));
...

Regards.

-- 
Osman İZBAT

Reply via email to