* Results from search query execute() method, or NULL if the search
* failed.
*/
protectedfunctionfindResults(){
$keys=$this->keywords;
// Build matching conditions.
...
...
@@ -222,7 +241,7 @@ public function execute() {
// Add the ranking expressions.
$this->addNodeRankings($query);
// Run the query and load results.
// Run the query.
$find=$query
// Add the language code of the indexed item to the result of the query,
// since the node will be rendered using the respective language.
...
...
@@ -249,10 +268,26 @@ public function execute() {
drupal_set_message(\Drupal::translation()->formatPlural($this->searchSettings->get('index.minimum_word_size'),'You must include at least one positive keyword with 1 character or more.','You must include at least one positive keyword with @count characters or more.'),'warning');