@mstrelan the issue should be in the solr contrib module. I have create the issue and added a patch. Probably best to do it the event subscriber way (which I haven't looked into yet but will now).
https://www.drupal.org/project/search_api_solr/issues/3492868#comment-15... β¨ Boosting is limited to one boost per field Active
I have created a patch for this issue.
I was then able to make a custom processor to use preprocessSearchQuery to add in the multiple boosts. My example:
public function preprocessSearchQuery(QueryInterface $query) {
parent::preprocessSearchQuery($query);
// Get the current user's current language.
$current_language = $this->languageManager->getCurrentLanguage()->getId();
// Define the language priority order.
$language_priority = [
'en' => 6,
'fr' => 5,
'es' => 4,
'ar' => 3,
'zh-hans' => 2,
'ru' => 1,
];
$language_priority[$current_language] = 8;
// Add a boost based on the langcode field.
foreach ($language_priority as $langcode => $boost) {
$query_boost[$langcode] = sprintf('if(eq(%s,"%s"),%2F,0.0)', SolrBackendInterface::FIELD_PLACEHOLDER, $langcode, $boost);
}
// Works now with search_api_solr_multiple_boost_per_field_3492868_3.patch.
$boosts['search_api_language'] = $query_boost;
$query->setOption('solr_document_boost_factors', $boosts);
}
breidert β credited farse β .
This patch worked for me.
I can confirm that the patch in https://www.drupal.org/project/drupal/issues/2885278#comment-15144519 π Add useful local tasks tabs when viewing a node revision Needs work works for Drupal 10.1.6 version.
I have done a bit of work on this issue, so will look into adding the code to the fork.
should "de-activate" be a word added to the list?
@ayush.pandey if you look at the PR you can see it has failed all the test
I found a page on creating a new issue here.
https://www.drupal.org/community/contributor-guide/reference-information... β
so we can probably just link to this? I tried to edit but it looks like I don't have any permissions to edit the page https://www.drupal.org/community/contributor-guide/contribution-areas/core β
Would help to have a roles and permissions section in https://www.drupal.org/docs β
I see a D7 version of roles and permissions but not D10.
resubmitting patch for
8.x-3.0-beta2
Patch updated for 8.x-3.0-beta4
re-sumbitting, the format of the file was weird for some reason
sorry, resubmitting patch with correct comment number
I've created a new patch as the original only updated the first translation in the row if there were more than 1 translation, this should update all the selected translations now.
I am looking on how to do this as well. Are the knock-on affects far and wide if this route is taken?
I am using 9.5.8 and of the patches that could be applied none of them worked for my situation. I just have some exposed filters based on taxonomy terms (I want to update one when the other is updated) and I am still getting the "maximum file size" bug when trying I applied #96 and #108
It would be useful to see from the example https://www.drupal.org/project/feeds_ex/issues/3025848#comment-12926299 π¬ What does Context (Base query to run on.) required field mean for XML Parser? Fixed how to extract the 'category' data, it took me a while to figure it out but here we go:
I have similar data:
alsdfkasd
....
And I have listed the context as /root/requestNo[@id] which works and the mapping the field to the id I mapped it as @id and that works a treat now!
@Beesonweb, what you exactly mean by "groups contents in a nodes view"?
same in 9.5.1 :/
might be a faff to install another module but you could try https://www.drupal.org/project/views_year_filter β , at least that's what I'm going to do
Patch #12 also works for me. My problem case was adding a paragraph to a content type that had another paragraph within it. This has solved the issue.