XF 2.4 Custom Field Improvements: Searching!

A short while ago we let you know about some improvements coming to XenForo 2.4 related to custom fields. You can catch up here:


Today we're continuing on that topic with the next logical progression: Custom field searching!

When adding a custom field you can now, under "General options", toggle whether the field can be included in the search index. This appears just below the new option to enable filtering.

Let's say we have a thread for bug reports with a custom field where you can specify a bug category:

1772135800627.webp


You can search in a couple of ways.

First, and probably most simple for text-based values, would be just searching for "control panel" (or any reasonable combination) in the quick search box.

1772136314392.webp


For a more advanced search, where you may want to search for multiple values across multiple fields, you can go to the Search forums page:

1772136602416.webp


We're excited to hear what you think and what your use cases will be for custom field searching (and filtering). We have a few more ideas for custom field improvements planned for the future so please let us know what else you'd like to see.
 
Just to clarify--these are custom thread fields?

Funny, we were just discussing this in another thread.

Having the ability to use custom thread fields to populate a "search forum" is exactly what we need.
 
We're excited to hear what you think and what your use cases will be for custom field searching (and filtering). We have a few more ideas for custom field improvements planned for the future so please let us know what else you'd like to see.
Oh my this is great. I use custom fields EXTENSIVELY in @Bob addons such as Showcase and RMS. Like 50+ fields and tons of choice fields so this is HUGE. :) I'll DM you my site to see.

What else I'd like to see? Hmm...
  • Upload/attach to a custom field
  • Repeater Field or a Table-style Input for custom fields would be neat. Sort of like how choice fields are added on the back end... enter one line and another line appears
  • Prompts for text based custom fields
  • Conditional required custom fields... fields that become required if another custom field has information entered or the thread/item has a certain prefix.
  • Custom fields that are only visible to a certain user group or are blurred if you are not a certain user group.
 
Last edited:
Having the ability to use custom thread fields to populate a "search forum" is exactly what we need.
Yes custom thread fields. I think you can already do this. Search forums are a little bit misleading in naming because they don't actually use the actual search index. They use the "searcher" system in the back end (think like the search users page or the criteria you get when using batch update threads/users). We've always supported custom field searching there.

1772137714771.webp


This is from the search forums UI here (still running 2.3).
 
Very nice and extremely welcome!

Will this allow filtering on multiple fields? And if so will it be possible to deny crawler bots (Google) to crawl endless combinations of fields?
I ask because URL's with a combination of fields often lead to Google's crawl budget being spent on endless variations of search query string parameters. Google really tanks site rankings on that.

For the sake of usability and for SEO, I'm hoping that live AJAX/JS filtering will be in another HYS.
 
Yes custom thread fields. I think you can already do this. Search forums are a little bit misleading in naming because they don't actually use the actual search index. They use the "searcher" system in the back end (think like the search users page or the criteria you get when using batch update threads/users). We've always supported custom field searching there.



This is from the search forums UI here (still running 2.3).
Will this be available in the Resource Manager addon to?

Searchable custom fields?
 
Back
Top Bottom