need filters on search component

  • 5
  • Idea
  • Updated 1 month ago
  • Under Consideration
Not having filters on the search component is getting more problematic as time goes on for us. Preferably, the search component would be able to return results of a model as opposed to a salesforce object, but any filtering by field value would be fine.
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb

Posted 1 year ago

  • 5
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Hi Raymond

Do you want to be able to exclude or include specific things from the search? For example: You are looking for a user and have the email address.
Now you only want to search in the "Email address" field and don't search over the whole Object? Is that right?

Thanks,

Janick
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Hi, Janick
One use case is that we have an "active" check box on contacts. In a search component where the return object is contacts I want it to return only contacts that are active. This same scenario applies to 4 other objects.
Another case is that I have a custom object that brings in data from a third party. Each record is assigned a "representative". Each representative is related to a user. So I would want a search component that returns records that are assigned to the representative related to the currently logged in user.
I currently do this kind of filtering with tables and card decks using conditions. It would be really helpful if I could put conditions on the search component as well.
Thanks
Photo of Arne-Per Heurberg

Arne-Per Heurberg

  • 1,336 Points 1k badge 2x thumb
We have similar use case in dealing with active/inactive and location specific equipment. Would be very helpful.
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Hey Raymond,

I like it! Thanks for the further description of the idea.
I'll bring this up when talking to the team today and will discuss adding this as an enhancement request for the Developers.

Thanks,

Janick
Photo of Jackson Alexander

Jackson Alexander, Director, Product Experience

  • 400 Points 250 badge 2x thumb
Raymond and Janick, thanks for these use cases! We'll certainly go over this one in planning with the team, as we have a number of requests for more advanced search (filtering, faceted search, multi-model, etc) to review. More info to come.
Photo of Tim Shores

Tim Shores

  • 508 Points 500 badge 2x thumb
Hi Jackson, any updates on when we can expect this feature, or other Search component updates?
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
We are resorting to xml hacking to accomplish filters.  Our use case (which we have tons where we use the Search Component) is a Product Search to drive our custom skuid-based CPQ.  But only search products that are Active and Quotable.  It would be much better if we could easily add the filters.

We'd also like to control the fields that get searched.  Another use case: we have a search component to find an Order.  Users can type in either the Order number or the customer's Purchase Order Number.  I don't want to see matches where the value searched on is in another record's address or something.
Photo of Peter Hale

Peter Hale, Employee

  • 330 Points 250 badge 2x thumb
There is a fields setting in the Return Objects section in the search that I think limits to searching just those fields.
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
I see where you can search All text fields, but I am looking for Specific Text fields (search PO_Number__c but not Street_Address__c)
Photo of Ambrose Alward

Ambrose Alward

  • 300 Points 250 badge 2x thumb
Chandra any chance you could give me a snipit of the code you are using to do the search xml hack?   I am needing to do it as well.