Changes between Version 26 and Version 27 of Event/2013/GSoC/TextSearch


Ignore:
Timestamp:
07/28/13 13:20:14 (12 years ago)
Author:
Vishrut Mehta
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Event/2013/GSoC/TextSearch

    v26 v27  
    123123* The full text search functionality is integrated in modules/s3/s3resource.py, the fulltext() does the work.
    124124* The flow is: First the TEXT query goes to transform() function, which would split the query recursively and then transform the query.
    125 * After transforming, the query with __text operator will go to fulltext() function and would search for the keywords in the indexed documents.
     125* After transforming, the query with TEXT operator will go to fulltext() function and would search for the keywords in the indexed documents.
    126126* It will retrieve document ids and then covert into a BELONGS S3ResourceQuery.
     127* The code sample for the fulltext() is in ''models/s3/s3resource.py''
     128
     129=== Unit Test ===
     130
     131* Unit Tests are important part of any code function to check ifs its working according to our expectation.
     132* For Full Text Search also, I have implemented it in ''modules/unit_tests/s3/s3resource.py'' - Class DocumentFullTextSearchTests
     133* For checking the code in different situations, so all errors are removed, there are different tests implemented for it. The cases are:
     134 * When Solr is available (Solr server is running normally)
     135 * When Solr is unavailable (Solr server is not running, but enabled)
     136 * Checking the output of query() function
     137 * Checking the output of call() function
     138
     139[[BR]][[BR]]
     140
     141
    127142
    128143