Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

Promolinks are indexed in a solr Core. The configuration is located in $DATAFARI_HOME/solr/solr_home/Promolinks/conf

A Promolink contains five fields :

  • a keyword (mandatory field) which is unique since it is also the id of the PromoLink,
  • a title (mandatory field),
  • a content (mandatory field),
  • a starting date (before this date the PromoLink will not be displayed) (optional),
  • an ending date (after this date the capsule will not be printed) (optional).

You can see all the existing Promolinks in the Admin UI. You can also add or delete or edit a Promolink on this page. This UI communicates with the admin servlet which communicates with the solr core.

The Solr fieldtype chosen for the field keywork is named capsuleType :

<fieldType name="capsuleType" class="solr.TextField"
positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.ASCIIFoldingFilterFactory"/>
</analyzer>
</fieldType>

Basically it splits the token at each blank character, it puts the string in lowercases and removes the accentuated characters. So it supports multiple words.

 

  • No labels