I want the user to input some values for some of the columns like title, department in text boxes or drop downs and then use them in the query to search the results. How can i achieve it?
To search on properties in SharePoint, we follow the guide Keyword Query Language (KQL) syntax reference. It states that property restrictions follow this pattern:
<Property Name><Property Operator><Property Value>
In other words, you search for a title like the following (without white spaces):
or if they where to search for more than one word in the title, users can use either one of the following queries:
title:Refer* title:Reference* title:"Reference Manual"