Jump to content

Bloom Filter / Hash


chantown

Recommended Posts

Is anyone familiar with this technique?

 

If so, is this how I apply it to a forum with "search" capabilities?

 

If someone posts an article, I scan every word, and I generate a "number" (hash) for each word...a number between 1-1024. I insert each topic/number into a table. (many rows)

 

Then, when a person types a query to search, I hash each keyword into a "number", and use "full-text search" on the topics that have keywords that have that number.

 

does anyone know what I mean?

 

So, i guess the ultimate question is: How do I convert a word into a number between 1-1024? Do you add up the askii of the numbers and mod something? Is there a function in PHP?

Link to comment
https://forums.phpfreaks.com/topic/80972-bloom-filter-hash/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.