pepperstreet VIP
Total posts: 3,837
24 Feb 2014 15:01

Hello, the Records-field has this very handy search feature, which allows to compare field values of different field-types and content-types:

Parameters - Search from & in:

Since also fields can be of different types; single and multi-value ...

how does the search work? I mean, which inner methods or operators do its magic? i.e.: exact matches? contains? like etc.

Especially multi-values are interesting to me. Does it have a "smart" or xx%-match calculation to list results?

( => see answers in comments below )


Ideas / Suggestions:

BTW, i recently played with J! core Tags, and there was a parameter for related results which lead me to this topic and the related questions.

1.) I remember, J! tags has a % option i.e.:

Show only results with 50%+ matches. So, less relevant articles are hidden completely. Is it possible to add such a feature in Cobalt, too?

2.) Or a mode/setting that shows only exact ( 100% ) matches. In other words, only show results where ALL (from) values are found.

Last Modified: 02 Mar 2014

Tags Cobalt 9


Sergey
Total posts: 13,748
24 Feb 2014 23:55

It smartly search through _js_res_record_values. because all single and multiple values fields store one row per value, we can use the same algorithm for all values.

This means that for example one article contain Joomla, Drupal and other Drupal, Wordpress. Should other article be found or not? We can manage it. We can even sort for most matched. For example let's say there is another Joomla, Drupal article. Then, 2 articles will be found but one that mutch most values will be first.


pepperstreet VIP
Total posts: 3,837
25 Feb 2014 08:05

We can even sort for most matched. For example let's say there is another Joomla, Drupal article. Then, 2 articles will be found but one that mutch most values will be first.

Indeed, very useful and smart!

1.) I remember, J! tags has a % option. Let's say... show only results with 50%+ matches. So, less relevant articles are hidden completely. Is it possible to add such a feature in Cobalt, too?

2.) Or a mode/setting that shows only exact ( 100% ) matches. In other words, only show results where ALL (from) values are found.


Sergey
Total posts: 13,748
25 Feb 2014 08:43

Good ideas. I'll implement it when I have more time or someone urgently need it on real time project.

Powered by Cobalt