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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

'hasOwnProperty' in javascript -