title: python using search engine to find text in text file
body: <p>I have lots of text files in a directory.Then i will ask a keyword from the user.If the user enters for eg: 'hello'<br>
  Then,it has to search the entire text file of all the directories present in the text file and then search and return the line of the text file ,having the high priority of word hello.</p>
  
  <p>Eg: </p>
  
  <pre><code>input: helloworld
  </code></pre>
  
  <p>output: </p>
  
  <pre><code>filename: abcd.txt
  line : this world is a good world saying hello
  </code></pre>
  
  <p>Give me some ideas on how to deal with such problems!</p>