www.webdeveloper.com
Results 1 to 2 of 2

Thread: google highlight

  1. #1
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    225

    google highlight

    I've been playing around a bit and googling all over for this, but I can't find a good solution.

    It's for a search function.
    I highlight the keywords found in the text (wrapped in <b> tags), which I have done.
    Now I want to pick out those sentences where those highlighted words belong. Pretty much like google does it when you see your search results.

    Example:

    The text:
    "My name is Kurt, I come from New Jersey in India where I work as a baby-stylist.I'm eighty-four years old and I live with my grandmother. I have three cats and forty-four snakes."

    I search for : [ New snakes ]. My function will highlight the words:
    "My name is Kurt, I come from New Jersey in India where I work as a baby-stylist.I'm eighty-four years old and I live with my grandmother. I have three cats and forty-four snakes."

    Now I want to extract the sentences where the keywords are (unless the sentences are too long).
    "My name is Kurt, I come from New Jersey in India where I work ... I have three cats and forty-four snakes."

    I hope you understand what I'm trying to achieve.

    Any kind of help is greatly appriciated.

  2. #2
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    225
    Bumping just this once, only because this is quite important.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles