I am working on a sharepoint farm 2013 on-premises. and i am searching for an appraoch which can allow me to build an advance search and filtering for my document library. currently my document library have the following fields:-
- Title, Created, Modified, Created by & Modified by.
Document Type. of type Drop-Down.
Department. of type Lookup.
Owner. of type People or Group field.
now i want to have an advance search section above my list view, which can allow users to search the above columns. Now after doing some searching and reading, i find a way to do this, based on the built-in features which allow us to filter list views by passing the search/filter parameters as follow:-
so i am planning to add the related HTML search fields (such as Type, Department, Ower, Title, etc.. ) inside a script editor web part + java script which will be responsible to build the url based on users input, so the final url will be as shown in the above sample. Here is a quick sample of what i am planning to build (of course for the drop-down search fields i will be populating their data based on the items inside the related lookup list or based on the related site column choices):-
now i did couple of tests and the results was promising as this appraoch allowed me to:-
benefit from the list view layout, as i will be filtering existing list views. so i do not have to worry about building the search result pages.
the build-in list view paging will respect the original parameters which i pass. so i do not have to worry about paging.
so as i am going to use this appraoch on multiple lists mainly of type document library. so are there any drawback or limitations on using this appraoch i am unaware of? and is there a better way to manage my requirements? or my appraoch is fine to proceed with?