Changes between Version 24 and Version 25 of Event/2013/GSoC/TextSearch


Ignore:
Timestamp:
07/28/13 13:11:33 (8 years ago)
Author:
Vishrut Mehta
Comment:

--

Legend:

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

    v24 v25  
    7575
    7676        vars = form.vars
    77         doc = vars.file # Where file is the name of the
     77        doc = vars.file # where file is the name of the upload field
    7878
    7979        table = current.db.doc_document # doc_document is the tablename
     
    105105        table = db.doc_document # doc_document is the tablename
    106106
    107         record = db(table.id == row.id).select(table.file,
     107        record = db(table.id == row.id).select(table.file, # where file is the name of the upload field
    108108                                               limitby=(0, 1)).first()
    109109
    110         document = json.dumps(dict(filename=record.file,
     110        document = json.dumps(dict(filename=record.file, # where file is the name of the upload field
    111111                                  id=row.id,
    112112                                 ))
     
    118118
    119119}}}
     120
     121=== Full Text Functionality ===
     122
     123* The full text search functionality is integrated in modules/s3/s3resource.py, the fulltext() does the work.
     124* 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.
     126* It will retrieve document ids and then covert into a __belongs query.
     127
    120128
    121129||= SMART Goal =||= Measure =||= Status =||