[ 
https://issues.apache.org/jira/browse/SOLR-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Kotthoff updated SOLR-303:
-------------------------------

    Attachment: solr-dist-faceting-non-ascii-all.patch

I've had a couple of issues with the current version. First, the facet queries 
which are sent to the other shards are posted in the URL, but aren't URL 
encoded, i.e. during the refine stage anything non-ascii results in facet 
counts for "new" values (i.e. the garbled version) coming back and causing NPEs 
when trying to update the counts.

Furthermore, facet.limit=<negative value> isn't working as expected, i.e. 
instead of all facets it returns none. Also facet.sort is not automatically 
enabled for negative values.

I've attached "solr-dist-faceting-non-ascii-all.patch" which fixes the above 
issues. Somebody who understands what everything is supposed to do should have 
a look over it though :)
For example I've found two linked hash maps in FacetInfo, topFacets and 
listFacets, which seem to serve the same purpose. Therefore I replaced them by 
a single hash map. It seems to work just fine this way.

> Distributed Search over HTTP
> ----------------------------
>
>                 Key: SOLR-303
>                 URL: https://issues.apache.org/jira/browse/SOLR-303
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Sharad Agarwal
>            Assignee: Yonik Seeley
>         Attachments: distributed.patch, distributed.patch, distributed.patch, 
> distributed.patch, distributed.patch, distributed.patch, distributed.patch, 
> distributed.patch, distributed.patch, distributed.patch, distributed.patch, 
> distributed.patch, distributed_add_tests_for_intended_behavior.patch, 
> distributed_facet_count_bugfix.patch, distributed_pjaol.patch, 
> fedsearch.patch, fedsearch.patch, fedsearch.patch, fedsearch.patch, 
> fedsearch.patch, fedsearch.patch, fedsearch.patch, fedsearch.stu.patch, 
> fedsearch.stu.patch, shards_qt.patch, solr-dist-faceting-non-ascii-all.patch
>
>
> Searching over multiple shards and aggregating results.
> Motivated by http://wiki.apache.org/solr/DistributedSearch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to