Is there a good guide on Item search. I want to seacrh Items only.
Developer forum
E-mail notifications
Search in Items only
Replies
Hi Tom
With search weighted it does not care if it is pages or items. But you can limit the search to look in only a specific part of your tree structure. So, if your items are located in a part of the tree, you can limit it like that.
An alternative is to use the item publishers filter function - insert the item publisher and filter using wildcards. With that, you can only search one item type for each instance of the item publisher.
Later we will release index based search on content and items using the new search engine. But that is still in the future...
BR Nicolai
Thanks a lot for a quick and relevant answer Nicolai!
Am I allowed to use Server:Request in the query filter?
See attachement ;-)
The reason I ask, is because it ends up empty. The syntax might be wrong from my side.
Hi Tom
See "Query string filtering" on this page: http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Item-publisher.aspx
BR Nicolai
Awesome, thanks!
Seems like it does not support Server:Request in the filter.
So have to do it with a datalist insted. Thanks anyways.
Hi Tom
Read the docs... You do not need to add it to the filter. You can search directly
So instead of
&name=request("q) in your filter settings
you do like this directly in the frontend:
&name=nicolai
I tried that, and I even upgraded the solution to 8.5.1.25 as mentioned in the documentation
In the given example ( see attachement ) It should have shown only two rows with the meta-keywords "helseforetak"
Make sure you use the system name in the querystring... Just tested it, and it works here.
Or provide us a URL to check it out.
BR Nicolai
Thanks a lot for the help.
It was the systemname, underscore not dash and capitalized M .. ( http://www.apotek.no/Default.aspx?ID=7613&Purge=True&Meta_keywords=apotek )
I didn't think the url was case sensitive.