[TYPO3-Solr] Build A-Z Search
Schwarzenberg
schwarzenberg at uni-leipzig.de
Wed Aug 1 13:40:16 CEST 2012
Ingo,
that works wonderful! I did'nt think that it's so easy :-)
Thanks, Heiko
> Am 30.07.12 12:01, schrieb Schwarzenberg:
>
> Hi Heiko,
>
>> i would like to build an A-Z Search to search for Documents whose title
>> starts with the correspondent letter. So now I'am unsure wheter to use a
>> special Facet or to create a new Field Type for the initial letter (is
>> it possible with a dynamic field?).
>
>> What would be the best way to achieve this kind of search?
>
> I would suggest to index a dynamic field of type string with the first letter of the title and then
> build a facet on it
>
> titleFirstLetter_stringS = TEXT
> titleFirstLetter_stringS {
> field = title
> ... use stdWrap substring to get the first letter
> }
>
> facets {
> firstLetter {
> field = titleFirstLetter_stringS
> label = A-Z
> }
> }
>
>
> HTH
> Ingo
>
More information about the TYPO3-project-solr
mailing list