Search is getting results from Solspace tag field even it is not searchable
Using this the results still yells out entries that has a tag in tag field that is not searchable (via field settings).
Is there a way to exclude any/that Tag field from search results by Low Search ignoring the field totally?
{exp:tag:cloud groups="2" tag_id="80|143|144"}
<label>
<input type="checkbox" name="tag_id[]" value="{tag_id}"{if low_search_tag_id ~ '/\b'.tag_id.'\b/'} checked{/if}>
{tag}
</label>
{/exp:tag:cloud}
Thanks in advance.
Btw, if I use only "groups="3" it shoots out tags that even are not in the tag group (id 3), What I might be missing here?
Replies
Low 27 Apr 2015 07:18
Whether a given field is searchable or not only affects the Keywords filter. When using the Tags filter (which you are doing here), targets specific tags directly and looks for whether a tag is assigned to an entry or not. It does not search for the tag text, like the Keywords filter would.
Also, if you only want to display tags from a certain group, use the parameter tag_group_id, rather than groups="" (which does something else).
Finally, if you're looking for entries with a certain tag ID, LS will return entries that have that tag ID assigned. If that entry also contains other tags which should not be shown (thus excluding the entry from the results), that should be set explicitly, eg. tag_id="not 1"
Riverboy 27 Apr 2015 07:49
Hi,
yeah the groups-part was my idiotism, sorry about that.
Ok, so using tag filtering to get less results is a no-no because of the fact that same tags can be found from any tag groups.
I have to read and try to find another way to limit results for certain "tags" only.
Thanks for the reply Low.