python - Come up with a search algorithm to search within documents -


i working on project need search within documents(pdf/docs etc) present in database relevant query. earlier used simple relation stored relevant keywords associated document , if query contains keywords fetch documents. method not reliable keywords might misleading. need search within documents , looking practical search algorithm can scale , has less time complexity. suggestions , resources welcome. thank you.

try rabin-karp (based on hashcode) search algorithm. have search more 1 pattern in many documents, hashcode of patterns , patterns in 1 go.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -