1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Search result snippets-- strip quoted text

Discussion in 'Resolved Bug Reports' started by Enigma, Jul 29, 2010.

  1. Enigma

    Enigma Well-Known Member

    It would seem logical to strip all quoted text from a post before generating the search result snippets of the post, otherwise the snippet is kind of misleading, since it does not contain the poster's words.

    Attached Files:

    Green Cat likes this.
  2. Green Cat

    Green Cat Active Member

  3. Mikey

    Mikey Well-Known Member

    I can see how that would be confusing.
  4. Mike

    Mike XenForo Developer Staff Member

    Actually, we did strip it at one point. The problem was that (currently) the quoted text is indexed, so if the match is in that text and we strip it, you won't see the match.

    The better approach would be to strip quoted text (at least that we attribute to being from another post) and then strip quotes in search results.
  5. Enigma

    Enigma Well-Known Member

    Hmm. I think quoted text should be indexed (you may want to search for a post based on a keyword that you remember from within quoted text). How about this-- when the search is for "Your content"/"What's New" etc, strip any leading quotes and use the beginning of the author-generated text as the snippet. If it's a keyword search, then generate the snippet by grabbing the first instance of the searched keyword and the surrounding text whether or not it's at the beginning of the post or if it's in quotes.

Share This Page