Closed David-Heylbroeck closed 9 years ago
Hello David,
The view that is rendered by the widget should be indexed without the need of implementing IContentLocatableView. Indexes that index pages should be able to find whatever the widget has rendered in its Index action.
We use IContentLocatableView to tell Sitefinity that a particular content (News item for instance) is located on the page where the widget is dropped so when a user searches and finds a text that is contained in the content then the link in the search results will point to a page where this content is located.
Regards, Boyko
Hello Boyko,
I made several tests and my pages is well indexed because when I start typing the title of one page the auto-complete works fine, but when I try to typing some widget content in the search box the auto-complete displayed nothing
Regards,
David.
Hello David,
The content of the pages might be left out of the index. Check in the properties of the search index if "Static HTML in pages" checkbox is checked.
You can test it by placing a content block with some text in it on a page. If you search for that text you should be able to get a result for the respective page.
If you can find a text from content block but cannot find widget content from your custom widget on another page then there might be an issue in the widget. You can check ~/App_Data/Sitefinity/Logs/Error.log for an exception coming from the widget.
Regards, Boyko
Hello Boyko,
As you can see in the print screen below I test the search index :
So the search is not working with my custom widget and with contenty block out of the box widget.
Regards
David.
Hello David,
Could you please check if you can reproduce the issue with the Web Form (Sitefinity) Search box widget? Regarding autocomplete, check Search box SuggestionFields property (from Advanced > Model). By default this property is set to Title, Content. Most probably you need to add another field that will be used by the search box's autcomplete.
Best, Pepi
Hello David,
I tested the issue and I believe that it is caused by a missing search segment file . In order to resolve this I can suggest you reindex MainSerach index. This could be achieved by backend->Administration->Search indexes, find your search index and from Actions dropdown choose Reindex.
If the issue still persist after the reindex please let me know.
Regards, Elena
Hello,
I have several custom widget in my sitefinity project and I want to add the properties of my custom widgets in the search index. To do that I try to implement the interface "IContentLocatableView" without success.
Find here the properties in the controller of my custom widget : public string Title { get; set; } public string SubTitleParagraphs { get; set; }
Find here the implementation of the GetLocations method and DisableCanonicalUrlMetaTag (For the ContentType I try "PageData", "PageNode", and my latest test with the widget controller type) :
What's wrong with my implementation
Thank you in advance for your help
David.