Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Highlightning of values in html elements and atributes

Vote:
 

The information 1234 is getting indexed and displayed as a highlighted text

som content

Is this a bug or a feature? How can we disable indexing of attributes inside elements.

I consider this not to be content and shouldnt be indexed at all.

Live example can be provided by PM

#140440
Oct 20, 2015 11:11
Vote:
 

One possible solution could be to remove html when indexing. This can be done by adding the [RemoveHtmlTagsWhenIndexing] attribute to the relevant property.

#140452
Oct 20, 2015 13:17
Vote:
 

Well the strange part is that this is a vidoeId part of a videofile and we have an indexing convention excluding videos (by interface on MediaData)

ContentIndexer.Instance.Conventions.ForInstancesOf<MediaData>().ShouldIndex(x => false);

So should I need to state Exclude vidoes and ignore html?

This kind of information should not have been indexed in the first place.

Its two "bugs" in one

#140458
Oct 20, 2015 14:40
Vote:
 

So whats basically is going on here is that we successfully have excluded the video to be indexed, checked and its not in the index.

But

A page that have the video in it gets indexed and all the properties from the video as well..

So in my case [JsonIgnore] should do the trick?

I can live with that

But

I cant accept the fact that the search highlighting takes parts from html tags attributes etc  and index them as part of content on a page.

#140459
Oct 20, 2015 14:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.