TYPO3-Solr / ext-solr

A TYPO3 extension that integrates the Apache Solr search server with TYPO3 CMS. dkd Internet Service GmbH is developing the extension. Community contributions are welcome. See CONTRIBUTING.md for details.
GNU General Public License v3.0
137 stars 250 forks source link

[Schema-Improvement] make each text field highlightable or introduce one dynamic field #2149

Open dkd-kaehm opened 6 years ago

dkd-kaehm commented 6 years ago

By setting highlighting field to title we get a bunch of following lines in Logs:

....DefaultSolrHighlighter Solr will use the standard Highlighter instead of FastVectorHighlighter because the title field does not store TermVectors with TermPositions and TermOffsets.

Only the content filed is tuned for highliter: https://github.com/TYPO3-Solr/ext-solr/blob/32c93bbe7f8d9e94742a8c13b534b7eb0eadf086/Resources/Private/Solr/configsets/ext_solr_7_5_0/conf/general_schema_fields.xml#L103


We should analyse how much more HDD-Space is needed in % each text field.


We could add dynamic highlightable fields for each of following fields:

<dynamicField name="*_textS"      type="text"      indexed="true" stored="true" multiValued="false" />
    <dynamicField name="*_textM"      type="text"      indexed="true" stored="true" multiValued="true" />
    <dynamicField name="*_textTS"     type="textTight" indexed="true" stored="true" multiValued="false" />
    <dynamicField name="*_textTM"     type="textTight" indexed="true" stored="true" multiValued="true" />
    <dynamicField name="*_textSortS"  type="textSort"  indexed="true" stored="true" multiValued="false" />
    <dynamicField name="*_textSortM"  type="textSort"  indexed="true" stored="true" multiValued="true" />
    <dynamicField name="*_textWstS"   type="textWhiteSpaceTokenized" indexed="true" stored="true" multiValued="false" />
    <dynamicField name="*_textWstM"   type="textWhiteSpaceTokenized" indexed="true" stored="true" multiValued="true" />
    <dynamicField name="*_textPath"   type="textPath"  indexed="true" stored="true" multiValued="false" />
    <dynamicField name="*_textExactS" type="textExact" indexed="true" stored="true" multiValued="false" />
<dynamicField name="*_textExactM" type="textExact" indexed="true" stored="true" multiValued="true" />
timohund commented 6 years ago

@dkd-kaehm I would agree. This discussion was the reason why no dynamic field was added: https://github.com/TYPO3-Solr/ext-solr/issues/193