Info |
---|
Valid from Datafari 3.0 |
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.
When you make a search on Datafari, once SearchProxy's doGet, two queries are sent:
One is sent to
FileShare
to retrieve the documentsAnother is sent to the
PromoLink
core.If a promolink is found, there will be a check of the dates (if those are filled).
If dates are not filled, the promolink will be considered as valid and it will be put in the
promolinkSearchComponent
key of the json object returned at the end.Then the promolink widget will print it at the beginning of the result list.
The Solr fieldtype chosen for the field keywork keyword
is named capsuleType
:
Code Block | ||
---|---|---|
| ||
<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.
...