eZ Community » Forums » Developer » solr schema.xml auto suggest settings
expandshrink

solr schema.xml auto suggest settings

solr schema.xml auto suggest settings

Wednesday 15 May 2013 10:28:51 pm - 4 replies

hi ez friends,

I try to setup a solr ezfind auto suggest with some problems.

I want to get the full title of products suggested.

Problem 1: if the title has a - like "the name - the subtitle" I don't get a search result, "the name" works

Problem 2: the suggestion comes if I write "the" to the beginning, if I start with "name" I don't get the title suggested

I tried this:

 <fieldType name="text4suggest" class="solr.TextField" positionIncrementGap="100">
 <analyzer>
  <tokenizer class="solr.KeywordTokenizerFactory"/>
  <filter class="solr.LowerCaseFilterFactory"/>
 </analyzer>
</fieldType>
 
<field name="ngsuggest_text" 
        type="text4suggest"  
        indexed="true"
        stored="true"
        multiValued="false" />
 
<copyField source="meta_name_t" dest="ngsuggest_text" />

Thursday 16 May 2013 12:21:27 am

Hi

Looks like you are using ngsuggest extension which we wrote long time ago as there was no such feature in ezfind. But from version 2.5 (or maybe even earlier, not sure ) there is a native ezfind feature for that: autocomplete. So better check that one as ngsuggest is not maintained recently (could have some problems with new versions of ezfind/solr),

 

Hope this helps

Thursday 16 May 2013 6:29:16 am

Hi Ivo,

no, I am using a little bit from your tuturial for the schema.xml for experiences.

Thursday 16 May 2013 11:13:05 am

Quote from scrieler _ :

Hi Ivo,

no, I am using a little bit from your tuturial for the schema.xml for experiences.

You mean this http://www.netgenlabs.com/Blog/Building-Netgen-Suggest-extension-suggestion-drop-down-for-search-fields-using-Solr-facets ?

btw. keywordtokenizer is not a good solution for suggestions. It will tokenize the text with a delimiter which is not what you need, I suppose

Friday 17 May 2013 10:54:53 pm

yes, it's the tutorial I mean.

now, I get a object name suggested, but if I get a full name suggested, it should search with " "

and I want to write any word of object name to get the suggestion, not only if I start with the beginning of the name

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from