More in this section

Forums / Developing with Sitefinity / Ellipses in Search Results

Ellipses in Search Results

4 posts, 0 answered
  1. Mike
    Mike avatar
    10 posts
    Registered:
    02 Oct 2008
    13 Oct 2008
    Link to this post

    I see a bunch of ellipses(i.e. ...)in my search results.  I've noticed the number of ellipses within my search results equals the number of "no index" filters within fieldsInfoProvider.xml. 

    Is there a configuration setting which will prevent these ellipses from displaying?
  2. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    15 Oct 2008
    Link to this post
    Hi Mike,

    There is no configuration setting that would allow you to prevent those "ellipses" (i.e. "...") from showing.

    When search is performed, for every index document that has a match and then for every field in that document the best matching fragments are being added to the result. The "ellipses" are being used to separate the fragments as those fragments are just pieces of different parts in the content.

    The actual number of "ellipses" depends on the number of matches, which means that if there is only one document matching the criteria in only one field value, you'll get one fragment and about three "ellipses", two at the start and one at the end of the result item.

    It is possible to have the exactly same number of "ellipses" in your result as the number of the fields in the fieldsInfoProvider.xml, but it is most likely to have more, as additional "ellipses" are being appended at the end of every single result item.

    Sincerely yours,
    Nikola
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. JohnGassman
    JohnGassman avatar
    18 posts
    Registered:
    03 Nov 2006
    01 Feb 2009
    Link to this post
    Nikola,

    Running v3.5 (initial release).

    I can confirm that filters in the fieldsInfoProvider.xml affect the number of "..." appearing in the results.

    For example, I wanted to filter out content in my custom main navigation control. Prior to making any changes to filesInfoProvider.xml, I re-indexed the site, and searched for a term that appeared in my main nav. As expected, it was found on all pages, and there was only a single ellipses at the end of the search summary.

    Then, I added the following to my filesInfoProvider.xml for my index:
    <field name="mainNav" weight="-1" indexAttribute="" filterTag="div" filterAttributes="id:MainNav" />

    Note that my custom control renders HTML that is contained in a <div id="MainNav"></div> block.

    After adding this, I re-indexed (using "Start indexing"), and ran another search with the same term. The index did indeed seem to be ignoring the content from my main nav control, BUT I am now getting 8 (eight) "..." at the begginning of every search result summary text that were not there prior to adding the filter. Incidentally, there are 8 items in my main nav (possibly just coincidence?).

    Now, if the "..." simply separated areas of the content where matches were found, why would *more* ellipses appear when I ask the indexer to ignore a section of my HTML? I would expect that *less* ellipses would appear, since there would be one less area of the page that was being searched.

    I know I can override the Render method of my controls to not render for the crawler, but why/how would our filter specs be adding "..." to the results?

    Thank you for any help!

    Best regards,
    John Gassman
    Workstate Consulting
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Feb 2009
    Link to this post
    Hi JohnGassman,

    Looking at the code, we saw circumstances under which several ellipses could be appended one after another. We are not able to suggest you a solution at the moment, but will try to change the logic today, so it can enter in the 3.6 release.

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered