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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -