Hi,
Documents are indexed in your smart search index according to specified content tree path, document types, culture and site. There is no other way to simply not index documents according to some special condition – the only way here would be not to display them in smart search result.
It is sort of problem in LUCENE search engine (used in Kentico
CMS smart search module) to compare string fields for emptiness. In other words, as far as I know, you cannot achieve this with simple condition in
Search condition property of smart search result web part.
However, following workaround could help you. You can add field of type Boolean (let’s say with name
IsLinkChecked) to your document type fields. Then if the
Link document field is filled, you would need to set
IsLinkChecked field to true (checked). You can automate this process with custom code in custom tree node handler (
http://devnet.kentico.com/docs/devguide/treenode_handler.htm) where you will set programmatically IsLinkChecked field to true if Link field is not empty.
Then you can use following condition in your
Search condition property of your smart search result web part to filter our documents with IsLinkChecked field set to true:
Search condition:
-IsLinkChecked:TruePlease make search that the field is searchable.
I hope this will help you. For more information about smart search module, please refer to following documentation:
http://devnet.kentico.com/docs/devguide/smart_search_overview.htmBest regards,
Miroslav Remias.