search for: hansardlist

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

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
...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/searchengine.php#L562 and highlight: https://github.com/mysociety/theyworkforyou/blob/master/www/includes/easyparliament...
2020 Sep 21
1
help improving relevance of snippets displayed by Omega
...es 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/searchengine.php#L562 > and highlight: > > https://github.com/mysociety/theyworkforyou/blob...