I am trying to sort by title field asc or desc
in a manner that is influenced by the stopwords list of a language,
for Instance I would like the title
"The Book", and "A Wallet" when sorted appear as
title
---------
The Book
A Wallet
but while I only managed to get my head smashed on the solr wall,
while I had NO SUCCESS what-so-ever !
So far I've tried to do this from Solr by various filedType definitions
and either copy the contents of title to BIB_title_sort
or via a dynamicField with a suffix or a prefix,
or even import the title straight into the field.
Here is my last FAILED attempt to do that
<fieldType name="sortString" class="solr.TextField"
sortMissingLast="true" omitNorms="true">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.ICUFoldingFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="lang/stopwords_el.txt,lang/stopwords_en.txt"
enablePositionIncrements="true"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
My question is
Is there a possible way to do that in SOLR?
OR
Do I HAVE TO remove the STOP WORDS and so on, during the IMPORT process,
by only writing custom scripts??
Thanks in advance,
Harry