Developer forum

Forum » Feature requests » Search in Items only

Search in Items only

Tom-Erik Paulsen
Reply

Is there a good guide on Item search. I want to seacrh Items only.


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

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

Votes for this answer: 1
 
Tom-Erik Paulsen
Reply

Thanks a lot for a quick and relevant answer Nicolai!

 
Tom-Erik Paulsen
Reply

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.

30.png
 
Nicolai Høeg Pedersen
Reply

Hi Tom

See "Query string filtering" on this page: http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Item-publisher.aspx

BR Nicolai

 
Tom-Erik Paulsen
Reply

Awesome, thanks!

 
Tom-Erik Paulsen
Reply

Seems like it does not support Server:Request in the filter.
So have to do it with a datalist insted. Thanks anyways.

 
Nicolai Høeg Pedersen
Reply

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

 
Tom-Erik Paulsen
Reply

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"

 

22.png
 
Nicolai Høeg Pedersen
Reply

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

 
Tom-Erik Paulsen
Reply

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.