[ 
https://issues.apache.org/jira/browse/SOLR-7214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14362164#comment-14362164
 ] 

Yonik Seeley commented on SOLR-7214:
------------------------------------

Really high level implementation notes:

FacetRequestParser takes in JSON and creates FacetRequest objects.
FacetRequest objects create FacetProcessor objects on specific shards that are 
responsible for doing the faceting.
FacetRequest objects can also create a FacetMerger, which is responsible for 
merging responses from multiple shards.

To the degree possible, we push smarts down to the leaves rather than making 
them dumb.
For example, instead of modifying things like "offset" or "limit" at the top 
level, the shards are aware that they are in a distributed search and know how 
to do that themselves.  This is much less error prone as we can avoid modifying 
the original facet request.

Things are designed to be fully pluggable as well.  For example, someone can 
design their own aggregation and it has the right methods to handle both low 
level implementation as well as high level distributed search merging.


> JSON Facet API
> --------------
>
>                 Key: SOLR-7214
>                 URL: https://issues.apache.org/jira/browse/SOLR-7214
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>         Attachments: SOLR-7214.patch
>
>
> Overview is here: http://heliosearch.org/json-facet-api/
> The structured nature of nested sub-facets are more naturally expressed in a 
> nested structure like JSON rather than the flat structure that normal query 
> parameters provide.
> Goals:
> - First class JSON support
> - Easier programmatic construction of complex nested facet commands
> - Support a much more canonical response format that is easier for clients to 
> parse
> - First class analytics support
> - Support a cleaner way to do distributed faceting
> - Support better integration with other search features



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to