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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.