Changes between Version 24 and Version 25 of Event/2013/GSoC/TextSearch
- Timestamp:
- 07/28/13 13:11:33 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Event/2013/GSoC/TextSearch
v24 v25 75 75 76 76 vars = form.vars 77 doc = vars.file # Where file is the name of the77 doc = vars.file # where file is the name of the upload field 78 78 79 79 table = current.db.doc_document # doc_document is the tablename … … 105 105 table = db.doc_document # doc_document is the tablename 106 106 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 108 108 limitby=(0, 1)).first() 109 109 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 111 111 id=row.id, 112 112 )) … … 118 118 119 119 }}} 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 120 128 121 129 ||= SMART Goal =||= Measure =||= Status =||