Listing filter not indexing attribute values

I’ve added an attribute that is a text field type, set it to display in the filter form, and added values for this attribute to several listings. When I try to filter by this attribute it says “No Results Found”.

If I change the filter field type to “text” and enter a value I’ve added to listings, the correct listings are shown. Using the Keywords search also brings up the correct results.
So it seems like the filtering works but the filter field just isn’t getting the values.

This is a fresh install with the ListingHive theme and only the Hivepress plugin.

Screenshot 2024-08-29 at 4.14.27 PM

Hi,

Most likely, you have created attributes with the text type and selected the select type in the Search section, but they are not compatible with each other, so it will not work this way. If you need to allow users to enter any text and use it as selectable options in a filter, we recommend considering our Tags extension, it works on the basis of user-defined text, and creates options in the database, rather than just storing the text as attribute text.

Yes, that is what I was doing.
I installed the tags plugin and was able to get it to work but it took quite a bit of customization to get the exact functionality I needed. I’m okay with using the tags plugin as it is but I’ll explain what I’m trying to accomplish and let me know if there is an easier way to get it working.

I have a very long list of attributes and I need a user to be able to select a single one for their listing, then I need the filter form to be able to select multiple values. The select field would be perfect when creating a listing but on the front end filter form the select field has every value including unused values.

Let me know if there is a better way of doing this. Thanks

Sorry for the delay.

If you don’t need the user input functionality (allowing users to define selectable options, not just select them) then using a custom attribute with Select type (in Edit context) should be ok, please make sure to select a compatible selectable type (Select, Checkboxes or Radio Buttons) for the Search context, though.

You can enable the Multiple option for Select to allow users to choose multiple options in the filters form. Also, there’s an option to change the search logic (it’s set to AND by default, but you can switch it to OR by selecting the “Search any of selected values” option in the Search context settings for the attribute).

If you mean hiding empty options from the search filters it’s a UX issue we have in the bug tracker and we’ll try to fix it as soon as possible.

Hope this helps

Thanks, Once that bug is fixed it should work exactly as I need. Thanks for the help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.