Page MenuHomePhabricator

prefer-recent queries fail in wmf9
Closed, ResolvedPublic

Description

https://www.mediawiki.org/w/index.php?title=Special%3ASearch&profile=default&search=engineering+goals+prefer-recent%3A1&fulltext=Search

Looks to be a continuation of the problem with ClassNotFoundException[org.antlr.runtime.RecognitionException] that was fixed for normal searches with https://gerrit.wikimedia.org/r/#/c/217150/

Warning: Search backend error during full_text search for 'engineering goals prefer-recent:1' after 17.  SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed; shardFailures {[MPiJqcnpToy6yla7hCXqvg][testwiki_content_1415316560][0]: RemoteTransportException[[elastic1005][inet[/10.64.0.112:9300]][search/phase/query+fetch]]; nested: SearchParseException[[testwiki_content_1415316560][0]: query[((+(all.plain:engineering | all:engineering^0.5) +(all.plain:goals | all:goal^0.5)) all_near_match:engineering goals )~1],from[-1],size[20]: Parse Failure [Failed to parse source [{"_source":["id","title","namespace","redirect.*","timestamp","text_bytes"],"fields":"text.word_count","query":{"bool":{"minimum_number_should_match":1,"should":[{"query_string":{"query":"engineering goals ","fields":["all.plain^1","all^0.5"],"auto_generate_phrase_queries":true,"phrase_slop":0,"default_operator":"AND","allow_leading_wildcard":false,"fuzzy_prefix_length":2,"rewrite":"top_terms_boost_1024"}},{"multi_match":{"fields":["all_near_match^2"],"query":"engineering goals "}}]}},"highlight":{"pre_tags":["<span class=\"searchmatch\">"],"post_tags":["</span>"],"fields":{"title":{"type":"experimental","fragmenter":"none","number_of_fragments":1,"matched_fields":["title","title.plain"]},"redirect.title":{"type":"experimental","fragmenter":"none","order":"score","number_of_fragments":1,"options":{"skip_if_last_matched":true},"matched_fields":["redirect.title","redirect.title.plain"]},"category":{"type":"experimental","fragmenter":"none","order":"score","number_of_fragments":1,"options":{"skip_if_last_matched":true},"matched_fields":["category","category.plain"]},"heading":{"type":"experimental","fragmenter":"none","order":"score","number_of_fragments":1,"options":{"skip_if_last_matched":true},"matched_fields":["heading","heading.plain"]},"text":{"type":"experimental","number_of_fragments":1,"fragmenter":"scan","fragment_size":150,"options":{"top_scoring":true,"boost_before":{"20":2,"50":1.8,"200":1.5,"1000":1.2},"max_fragments_scored":5000},"no_match_size":150,"matched_fields":["text","text.plain"]},"auxiliary_text":{"type":"experimental","number_of_fragments":1,"fragmenter":"scan","fragment_size":150,"options":{"top_scoring":true,"boost_before":{"20":2,"50":1.8,"200":1.5,"1000":1.2},"max_fragments_scored":5000,"skip_if_last_matched":true},"matched_fields":["auxiliary_text","auxiliary_text.plain"]}},"highlight_query":{"query_string":{"query":"engineering goals ","fields":["title.plain^20","redirect.title.plain^15","category.plain^8","heading.plain^5","opening_text.plain^3","text.plain^1","auxiliary_text.plain^0.5","title^10","redirect.title^7.5","category^4","heading^2.5","opening_text^1.5","text^0.5","auxiliary_text^0.25"],"auto_generate_phrase_queries":true,"phrase_slop":1,"default_operator":"AND","allow_leading_wildcard":false,"fuzzy_prefix_length":2,"rewrite":"top_terms_boost_1024"}}},"suggest":{"text":"engineering goals ","suggest":{"phrase":{"field":"suggest","size":1,"max_errors":2,"confidence":2,"direct_generator":[{"field":"suggest","suggest_mode":"always","max_term_freq":0.5,"prefix_length":2}],"highlight":{"pre_tag":"<em>","post_tag":"</em>"}}}},"stats":["suggest","full_text"],"size":20,"rescore":[{"window_size":8192,"query":{"rescore_query":{"function_score":{"functions":[{"field_value_factor_with_default":{"field":"incoming_links","modifier":"log2p","missing":0}},{"script_score":{"script":"exp(decayConstant * (doc['timestamp'].value - now))","params":{"decayConstant":5.0140855075228e-11,"decayPortion":1,"nonDecayPortion":0,"now":1433978773000},"lang":"expression"}}]}},"query_weight":1,"rescore_query_weight":1,"score_mode":"multiply"}}]}]]]; nested: NoClassDefFoundError[org/antlr/runtime/RecognitionException]; nested: ClassNotFoundException[org.antlr.runtime.RecognitionException]; }] [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/mediawiki/php-1.26wmf9/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 99] in /srv/mediawiki/php-1.26wmf9/includes/debug/MWDebug.php on line 300

Event Timeline

EBernhardson raised the priority of this task from to Needs Triage.
EBernhardson updated the task description. (Show Details)
EBernhardson added a project: CirrusSearch.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Ok - we need to roll back this change then...... sadness. This is on by default for wikinews and we don't want to break their search.

Manybubbles triaged this task as Unbreak Now! priority.Jun 11 2015, 4:19 PM
Manybubbles set Security to None.

Reverted the dynamic groovy patch and deployed to wmf9. Verified prefer-recent searches now work as expected.