-
Type:
Improvement
-
Status: SME Review
-
Priority:
Minor
-
Resolution: Unresolved
-
Component/s: Search Infrastructure
-
Labels:None
-
Epic Link:
-
Type of Documentation:User
-
Git Pull Request:
Tasks:
- Add example to the Custom Facet article to show how to use Custom Fields (steps below)
- Promote Field Mappings UI for finding fields
- Talk about using Elasticsearch's Raw fields
To show how to use Custom Fields:
- Create a Custom Field for Web Content of type true/false, searchable as keyword called enabled
- Field name in index:
expando__keyword__custom_fields__enabled
- Field mapping in Elasticsearch:
GET /liferay-20098/_mapping/field/expando__keyword__custom_fields__enabled { "liferay-20098": { "mappings": { "expando__keyword__custom_fields__enabled": { "full_name": "expando__keyword__custom_fields__enabled", "mapping": { "expando__keyword__custom_fields__enabled": { "type": "text", "store": true, "fields": { "raw": { "type": "keyword" } }, "analyzer": "keyword_lowercase" } } } } } }
As you can see, Custom Fields are indexed in a nested form:
expando__keyword__custom_fields__enabled
: as text
expando__keyword__custom_fields__enabled.raw
: as keyword => Use this in the Custom Facet widget configuration
- is related to
-
LPS-123694 Custom facet no longer works with DDM fields
- Closed
-
LRDOCS-7837 Custom facet improvement: cover using the raw fields + promote using the Field Mappings feature
-
- Closed
-
- relates
-
LRDOCS-8659 Document how mappings changes can affect users of search widgets
-
- Open
-