Open Closed

advanced search capability. #2074


User avatar
0
Neozzz created

Hi,

We were looking at the easycrm example from abp docs.

We've seen the advanced search implementation to retrieve a list of accounts through advanced search. Here we can at a time search and apply filter for only one word per field, for example we can retrieve a list of all accounts where country is USA.

Similarly, do we have any example or reference docs where we can obtain a list of accounts where country is USA, New Zealand, Italy etc. for example? Something where we can pass multiple words as search terms to each fields?

Thank you.

  • ABP Framework version: v4.4.3
  • UI type: swagger/angular
  • DB provider: EF Core & MongoDB
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    Neozzz created

    Hi, usually you guys are atleast 10 hours quicker, havent taken 22 hours to reply to a ticket until the past 2 days.

    hope everything is fine over there.

    kindly look into this.

    thank

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Similarly, do we have any example or reference docs where we can obtain a list of accounts where country is USA, New Zealand, Italy etc. for example?

    You can download the source code here: https://docs.abp.io/en/commercial/latest/samples/easy-crm#download

    Something where we can pass multiple words as search terms to each fields?

    Are you talking about front-end components? like: https://material.angular.io/components/select/overview#multiple-selection

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Neozzz created

    hi liang, i am talking about the end point itself. the current search only allowed one term per field to retrieve record. i was asking about a scenario where we can search by multiple terms per field. hope i am able to convey my concern. please let me know.

    thank you :)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Yes, you can

    Just:

    var countries = new List<string>();
    var results = await repository.where(x => countries.Any(country => x.Name.Contains(country))).ToListAsync();
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.