fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.19k stars 1.56k forks source link

Support Multiple Per-Column Search - Advanced Search #249

Closed geekz-reno closed 1 year ago

geekz-reno commented 2 years ago

Its possible to search multiple field using AdvanceSearch? it works when search only one value eg,

{
  "advancedSearch": {
    "fields": [ "startDate" ],
    "keyword": "2022-12-10"
  },
  "keyword": "",
  "pageNumber": 0,
  "pageSize": 10,
  "orderBy": []
}

Thank you,

iammukeshm commented 2 years ago

you can use something like

{
    "advancedSearch": {
    "fields": [
      "name",
      "id"
    ],
    "keyword": "623"
  },
  "keyword": "",
  "pageNumber": 0,
  "pageSize": 10,
  "orderBy": [
    "id"
  ]
}

to search against multiple columns for a value. Is this your question? Or do you want to search separate columns with different values?

frankyjquintero commented 2 years ago

The scenario where advanced search is supported by each field with different data types would be a great advantage, scenarios such as kendo ui tables and entity core framework

iammukeshm commented 2 years ago

Should be possible to add this feature. Will raise this as an issue to the Backlog.

geekz-reno commented 2 years ago

hi @iammukeshm really sorry for late replay, yes, i mean to search multiple field with multiple colom with different value, like i want to search where startDate = '2021-12-12' AND/OR paymentType = 'Credit'

thank you,

iammukeshm commented 2 years ago

Will keep this open till I add this feature.

frankyjquintero commented 2 years ago

https://github.com/fullstackhero/dotnet-webapi-boilerplate/pull/570