Hi,
Is it possible to programmatically add parameters to an index? If so how is it done?
Hi,
Is it possible to programmatically add parameters to an index? If so how is it done?
You do not add parameters to an index. In the index you have documents which again has fields.
A search can have parameters - which are values for the right hand side of the search criteria.
Queries and its criterias (Expressions) and parameters are saved in a XML file found in /Files/System/Repositories/YourRepositoryName/YourQueryName.query
You can read it like this (Reference Dynamicweb.Querying):
Hi Nicolai
Oops, sorry I did not use the right terms for what I want to accomplish. But I want to add parameters to the search dynamically because I have added the sort order (in the backend) of products in product groups to fields in the index. Now I want to sort on these fields in the frontend and therefore needs these fields as parameters in the search. After having used your example code I managed to add the parameters to the Parameters property and now I can sort products in the frontend according to their sort order in the backend.
Thanks
You must be logged in to post in the forum