I'm using Low Search to search a business directory where individual businesses are tagged with the Solspace Tag module. The search form has a field for keywords and a drop-down list of tags.
Here's the code I have that's working:
{exp:low_search:form
collection="vendors"
search_mode="all"
result_page="resources/marketplace/search_results"
query="{freebie_4}"
loose_ends="yes"
}
<fieldset>
<label for="keywords">Search by keyword</label>
<input type="search" name="keywords" value="{low_search_keywords}" />
<label for="search:vendor_services">I need:</label>
<select name="search:vendor_services">
<option></option>
{exp:tag:cloud
status="open"
tag_group_name="vendor_service_tags"
}
<option{if low_search_search:vendor_services == '{tag}'} selected{/if} value="{tag}">{tag} ({count})</option>
{/exp:tag:cloud}
</select>
<button type="submit">GO</button>
</fieldset>
{/exp:low_search:form}
But I'm having trouble getting Low Search to search for an exact match in the tags custom field. For instance, if I search for the tag "farm" I get results with the "farmers market" tag as well.
Adding an '=' sign for an exact match like value="={tag}"
only matches if that's the only tag.
Reading this post, it sounds like it might not be possible since I'm trying to do an exact match with multiple values.
Is this possible with Low Search? Or should I be using Solspace's Super Search instead since is has a tag parameter specifically for searching tags?