Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-27327: Fix User / ContentType / Section facet support in Solr #92

Merged
merged 4 commits into from
May 22, 2017

Conversation

andrerom
Copy link
Contributor

@andrerom andrerom commented May 9, 2017

Issue: https://jira.ez.no/browse/EZP-27327
Epic: https://jira.ez.no/browse/EZP-26465
Alternative to: #91*

Done:

  • New logic for facet builder visitors with BC for existing once to be able to identify* which facets belongs to which facet builder, to be able to inject right facet builder when extracting the result from Solr:
    • This makes ContentType and Section facets fully implemented (for now) as we can now use name from the user provided value in FacetBuilder.
  • Improve User Facet handling to support all three sub types: modifier, owner and group
  • Don't throw when encountering unsupported FacetBuilders, just ignore, user will have to iterate returned facets to generate his UI/app
  • Enable the 3 facets (User, ContentType, Section) supported atm also on Location search

* The benefit of this approach over the one in #91 is that it reduces complexity of facet builder visitors by getting them to set id on the facet, which in turn better gurantees we use right facet builder with a given facet during extraction phase, this was proposed by @kore in 274875f#commitcomment-22050214

@andrerom andrerom force-pushed the facets-EZP-26465-alt branch from 5a6d608 to 3203af2 Compare May 9, 2017 18:38
@andrerom andrerom changed the title EZP-27327: Finalize User / ContentType / Section facet support in Solr EZP-27327: Fix User / ContentType / Section facet support in Solr May 9, 2017
@andrerom andrerom requested review from pspanja and alongosz May 9, 2017 18:39
@andrerom andrerom force-pushed the facets-EZP-26465-alt branch from 3203af2 to 6691f84 Compare May 9, 2017 20:48
@@ -39,7 +39,7 @@ public function __construct(FacetBuilderVisitor $facetBuilderVisitor)
*
* @return \eZ\Publish\API\Repository\Values\Content\Search\SearchResult
*/
public function extract($data)
public function extract($data, array $facetBuilders = [])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: missing PHPDoc for the new $facetBuilders param.

Copy link
Contributor Author

@andrerom andrerom May 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 799c7a2

@andrerom andrerom force-pushed the facets-EZP-26465-alt branch from 6691f84 to 1bf0c11 Compare May 10, 2017 14:07
@andrerom andrerom requested a review from Nattfarinn May 18, 2017 14:33
@andrerom andrerom merged commit d2d4fcb into 1.3 May 22, 2017
@andrerom andrerom deleted the facets-EZP-26465-alt branch May 22, 2017 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants