Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEclipse
public interface RecipeVersion extends MediaItemArticleVersion {
 
    public String getName();
 
    public String getDescription();
 
    public Locale getLanguage();
 
    public Country getCountry();
 
    public List<Ingredient> getIngredients();
}

public interface Country {
 
    public String getName();
 
    public String getCapital();
 
    public String getMotto();
}

public interface Ingredient {

    public String getName();
}

...

Code Block
themeEclipse
@Indexable
public interface RecipeVersion extends MediaItemArticleVersion {

    @Field
    public String getName();

    @Field
    public String getDescription();
     public Locale getLanguage();
     public Country getCountry();
     public List<Ingredient> getIngredients();
}

...

Code Block
themeEclipse
@Indexable
public interface RecipeVersion extends MediaItemArticleVersion {

    @Field(heading = true, boost = 1)
    public String getName();
    
    @Field(stored = false, body = true)

    public String getDescription();
 
    public Locale getLanguage(); 
     public Country getCountry();
 
    public List<Ingredient> getIngredients();
}

...

  • If your facet does not appear in the Advanced Search, ensure that:
    • you have created one of your annotated content items;
    • the value you expect to see is actually used and does not return null;
    • the content item is indexed;
    • your path is fully lowercased.
  • If a class that is not exported through the Export-Package directive in the pom.xml adds a facet, this facet's SearchFacetDescriptor will have owner void.class.
  • Many things are logged at log level FINE. This should give you detailed information about what values are indexed for a specific method, and why.


Back to top


...

Search Facet Group Methods


Panel
borderColor#0081C0
titleColor#0081C0

The following applies to XperienCentral versions R41.0 and higher.


When a SearchFacetComponentDefinition is created, a SearchFacetGroup can be provided as well. Providing a SearchFacetGroup will make sure that the custom facet is also added to the Configure Columns panel within the R41 list view in Advanced Search. In XperienCentral versions R41 and higher, the following methods can be used to add and remove search facet groups:


Code Block
themeEclipse
/**
 * Add a search facet group to an existing search facet group definition
 * @param searchFacetGroup the search facet group to add.
 */
void addSearchFacetGroup(SearchFacetGroup searchFacetGroup);

/**
 * Remove the SearchFacetGroup with the specified identifier from the set of search facets groups
 * @param identifier the identifier of the the search facet group that needs to be removed.
 */
void removeSearchFacetGroup(String identifier); 


Back to top