Search engine/search results formatting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
WingedFox
Forum Newbie
Posts: 2
Joined: Mon Mar 17, 2003 3:03 pm
Location: RU

Search engine/search results formatting

Post by WingedFox »

Hello!

Data exists:
Search result - string with words, spaces and punctuation marks.
Search query - stings with N words (N>0) or boolean search query.

Task:
I need to cut some substrings (2-3) from search result that contain max possible words and fit to "result show frame" - it's about 200 chars long.
Do you know any sort of such algorythm?
Except one that counts lengths between all atoms? It's tooooo slow.
Some of texts in db are 100.000 symbols long.

Thanks =)
Post Reply