search for: prepare_search_result_for_display

Displaying 3 results from an estimated 3 matches for "prepare_search_result_for_display".

2020 Sep 20
3
help improving relevance of snippets displayed by Omega
Olly, Thanks again very much for helping me improve my understanding of Xapian and Omega. Thanks especially for pointing out that my idea of trying to generate a snippet from stemmed text lacking capitalization and punctuation would probably not produce a user-friendly result. But I'm still doubtful that expanding the sample size could be the right way to obtain excerpts from the document
2020 Sep 21
0
help improving relevance of snippets displayed by Omega
...aising, but as you say it does basically do what you want. Our Xapian database stores terms/boolean terms/values for the text, and for the document itself stores only an identifier. It works by doing the Xapian search, then fetching the resultant IDs from the database, then it boils down to calling prepare_search_result_for_display on each result: https://github.com/mysociety/theyworkforyou/blob/master/www/includes/easyparliament/hansardlist.php#L1279-L1306 Which uses two functions to then work out the extract, position_of_first_word: https://github.com/mysociety/theyworkforyou/blob/master/www/includes/easyparliament/searchen...
2020 Sep 21
1
help improving relevance of snippets displayed by Omega
...does basically do what you want. > Our Xapian database stores terms/boolean terms/values for the text, and > for the document itself stores only an identifier. > It works by doing the Xapian search, then fetching the resultant IDs from > the database, then it boils down to calling > prepare_search_result_for_display on each result: > > https://github.com/mysociety/theyworkforyou/blob/master/www/includes/easyparliament/hansardlist.php#L1279-L1306 > Which uses two functions to then work out the extract, > position_of_first_word: > > https://github.com/mysociety/theyworkforyou/blob/master/www/in...