Developer forum

Forum » CMS - Standard features » Field being analyzed - when asked not to

Field being analyzed - when asked not to

Nuno Aguiar
Reply

Hi,

 

I can't understand why a field is being analyzed when asked not to. Could this be a bug?

  • https://www.screencast.com/t/6rTg4kQuCn
  • You can see the term vector is not 1 - which it should not being analyzed
  • Could it be a bug with "List Box" fields?
    • Although I don't show it, this is a multiselect field where 3 options are set on this product.

 

I am using 8.9.1.9

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

Hi Nuno

A list box has X-values - each value is part of an array when indexed - so each piece of information in the list is one array entry

<input type="radio" name="field" value="Some">

<input type="radio" name="field" value="Other">

<input type="radio" name="field" value="String">

The value of this is an Array ["Some", "Other", "String"] which are indexed as such. In this case since the values are strictly one words, analyzed has no impact.

If the values contained more words:

<input type="radio" name="field" value="Some word">

<input type="radio" name="field" value="Other word">

<input type="radio" name="field" value="String word">

The values would then be: ["Some word", "Other word", "String word"] - which would be handled differently on analyzed/not analyzed.

So you cannot get a string of "Some,Other,String" in the field in the index (I guess that is what you are trying?)

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Got it. Makes sense now. I know what I have to do then.

 

Thank you,

Nuno

 

You must be logged in to post in the forum