Displaying 1 result from an estimated 1 matches for "xapian_file_name".
2012 Nov 03
1
get the title from the document
.../// code? for building the index file
??????? # Load content
??????? content = open(filePath).read()
??????? # Prepare document
??????? document = xapian.Document()
??????? document.set_data(content)
??????? # Store fileName
??????? fileName = os.path.basename(filePath)
??????? document.add_value(xapian_file_name, fileName)
??????? # Index document
??????? indexer.set_document(document)
??????? indexer.index_text(content)??????????????????
???????
??????? #Store indexed content in database
??????? database.add_document(document)
///////////// code? for searching?
??? query = queryParser.parse_query(que...