[TYPO3-Solr] Searching for custom field values

Marc Wöhlken woehlken at quadracom.de
Fri Nov 1 12:38:42 CET 2013


Hi Martin!
Very good hint. This togehter with changing field types from
ansprechpartner_stringS to ansprechpartner_textS solved the problems.

CU
Marc

Am 06.08.2013 18:46, schrieb hard.one Software GmbH - M.P.Hanke:
> Hi Marc
> 
> you need to configure search.query.fields . The notation is
> 
> [solr_searchfield]^[boostFactor]
> 
> Example:
> 
> plugin.tx_solr {
>   search{
>      query {
>        fields = content^40.0, title^5.0, keywords^2.0, tagsH1^5.0, 
> tagsH2H3^3.0, tagsH4H5H6^2.0, 
> tagsInline^1.0,strasse_stringS^1.0,ansprechpartner_stringS^1.0
>        sortBy = type asc
>      }
> }
> 
> Regards
> 
> Martin
> 
> hard.one Software GmbH
> {
>    Baumgarten 10
>    CH-6415 Arth
>   =========================
>    Fon    +41.41.857.00.90
>   =========================
> 
>    Martin Peter Hanke
>    {
>       Mobil  +41.78.880.93.36
>    }
> }
> 
> On 06.08.2013 18:14, Marc Wöhlken wrote:
>> Hello,
>> I have added some custom fields to my solr config but can not search for
>> those field values.
>>
>> My (shortened) setup looks like this:
>>
>> plugin.tx_solr {
>>    enabled = 1
>>      index {
>>        queue {
>>          tx_myext = 1
>>          tx_myext {
>>            fields {
>>              strasse_stringS = strasse
>>              ansprechpartner_stringS = ansprechpartner
>>          }
>>        }
>>      }
>>    }
>> }
>>
>> In solr admin I can see that those values are indexed by solr:
>> <str name="ansprechpartner_stringS">Max Mustermann</str>
>> <str name="strasse_stringS">Rembertistraße 32</str>
>>
>> Which part of configuration is missing to make those values searchable?
>>
>> Any hint appreciated,
>> regards
>> Marc
>> 		
>>


-- 
...........................................................
Marc Wöhlken                     TYPO3 certified integrator

Quadracom - Proffe & Wöhlken

Rembertistraße 32              WWW: http://www.quadracom.de
D-28203 Bremen                E-Mail: woehlken at quadracom.de
______________             PGP-Key: http://pgp.quadracom.de


More information about the TYPO3-project-solr mailing list