search for: position_of_first_word

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

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
..., 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/searchengine.php#L475 They stem the entered words and loop through the speeches to find the m...
2020 Sep 21
1
help improving relevance of snippets displayed by Omega
...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/searchengine.php#L475 > They stem the entered words and loop thro...