Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The schema files provide an entry to use "Omit norms" on text fields by using the to
prefix.
<!-- These text fields omit norms - useful for extracted text like taxonomy_names -->
<dynamicField name="tos_*" type="text" indexed="true" stored="true" multiValued="false" termVectors="true" omitNorms="true"/>
<dynamicField name="tom_*" type="text" indexed="true" stored="true" multiValued="true" termVectors="true" omitNorms="true"/>
However there isn't a datatype to actually expose fields to use this prefix.
Proposed resolution
Add a new SearchApiDataType
to add this prefix.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | add_omit_norms_text-2915129-2.patch | 1.32 KB | Erik Frèrejean |
Comments
Comment #2
Erik FrèrejeanComment #3
mkalkbrennerLooks good!
After commit to 8.x-1.x we need to "port" the patch to 8.x-2.x. Therefore we have to extend the patch to add a multilingual treatment of the
to*
fields.Comment #5
mkalkbrennerThe views mapping was missing. I fixed that on commit. Thanks!
Now 8.x-2.x ...
Comment #7
mkalkbrenner