EPiServer Find: Any maxlength on SearchText

Vote:
 

Is there any max length on SearchText property?

It seems like it cuts of after 2400 characters? Is that documented, or is there no such limit which means I have an issue in my EPiServer solution?

#144174
Feb 08, 2016 20:40
Vote:
 

Did you check the index in edit mode? I was just wondering where this max length limit occurs...before, or after indexing when returning result.

There are a few max limits in Find like how many max facets to return, max file size etc so it's definitely possible. They are normally configured in client conventions that specify how indexing works. 

If you have problems with the length of the returned text you should check out the section on HitSpecification that controls the length of the returned text. You can check out 

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/9/DotNET-Client-API/Searching/Unified-search/

If you have problem that the text is cut off before it gets to the index I would check out the defaults set on IUnifiedSearchRegistry instead.

#144177
Feb 08, 2016 22:01
Vote:
 

es, I had already checked the index in edit mode and I could see that searchtext was cut off after 2402 characters (ending with ...).

So it definitely was a problem before searchtext got into the index. Thanks to your guidance I went into the SearchText overriden property and saw that TextIndexer.StripHtml() was used with a default maxlength of 2048 characters. There lied the problem. The solution is simple, increase the default value.

Thank you, Daniel

#144222
Feb 09, 2016 13:09
Vote:
 

Sweet! Good to know that one. The striphtml is used in a few other places too...

#144231
Feb 09, 2016 14:23
* 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.