[TYPO3-Solr] how to configure for an infix suggester

Jorinde Milde jorinde.milde at 599media.de
Mon Jun 22 08:49:36 CEST 2015


Good morning,

> Perhaps you can create a small extensions which overrides that function and sets the query parameters like you need them.

That is at least how we did it. In solr setup.txt you can change the JavaScript for suggestions: 
suggest = EXT:your_ext/Resources/Public/js/solr-suggest.js

In that JavaScript the SuggestQuery.php is called via eID. We configured a new eID in your_ext/ext_localconf:
$TYPO3_CONF_VARS['FE']['eID_include']['tx_solrmsn_suggest'] = 'EXT: your_ext /Classes/SolrEidSuggest/Suggest.php';
And used that one in the JavaScript:
var tx_solr_suggestUrl = '/?eID=tx_solrmsn_suggest&id=204';

Good Luck!

Jorinde

-----Ursprüngliche Nachricht-----
Von: typo3-project-solr-bounces at lists.typo3.org [mailto:typo3-project-solr-bounces at lists.typo3.org] Im Auftrag von Jigal van Hemert
Gesendet: Freitag, 19. Juni 2015 22:45
An: typo3-project-solr at lists.typo3.org
Betreff: Re: [TYPO3-Solr] how to configure for an infix suggester

Hi,

On 19/06/2015 19:52, Andre Paradis wrote:
> Any pointers on configuring typo3 solr plugin to get the infix 
> behaviour  would be highly appreciated

I fear that it's hardcoded in Classes/SuggestQuery.php in
getQueryParameters() .

Perhaps you can create a small extensions which overrides that function and sets the query parameters like you need them.

--
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org
_______________________________________________
TYPO3-project-solr mailing list
TYPO3-project-solr at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr


More information about the TYPO3-project-solr mailing list