πŸ‡¬πŸ‡§United Kingdom @farse

Account created on 18 June 2012, over 12 years ago
  • Senior Drupal Developer at ZoochaΒ 
#

Merge Requests

Recent comments

πŸ‡¬πŸ‡§United Kingdom farse

@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

πŸ‡¬πŸ‡§United Kingdom farse

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);
  }
πŸ‡¬πŸ‡§United Kingdom farse

farse β†’ made their first commit to this issue’s fork.

πŸ‡¬πŸ‡§United Kingdom farse

This patch worked for me.

πŸ‡¬πŸ‡§United Kingdom farse

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.

πŸ‡¬πŸ‡§United Kingdom farse

I have done a bit of work on this issue, so will look into adding the code to the fork.

πŸ‡¬πŸ‡§United Kingdom farse

farse β†’ made their first commit to this issue’s fork.

πŸ‡¬πŸ‡§United Kingdom farse

should "de-activate" be a word added to the list?

πŸ‡¬πŸ‡§United Kingdom farse

@ayush.pandey if you look at the PR you can see it has failed all the test

πŸ‡¬πŸ‡§United Kingdom farse

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 β†’

πŸ‡¬πŸ‡§United Kingdom farse

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.

πŸ‡¬πŸ‡§United Kingdom farse

re-sumbitting, the format of the file was weird for some reason

πŸ‡¬πŸ‡§United Kingdom farse

sorry, resubmitting patch with correct comment number

πŸ‡¬πŸ‡§United Kingdom farse

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.

πŸ‡¬πŸ‡§United Kingdom farse

I am looking on how to do this as well. Are the knock-on affects far and wide if this route is taken?

πŸ‡¬πŸ‡§United Kingdom farse

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

πŸ‡¬πŸ‡§United Kingdom farse

farse β†’ made their first commit to this issue’s fork.

πŸ‡¬πŸ‡§United Kingdom farse

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!

πŸ‡¬πŸ‡§United Kingdom farse

@Beesonweb, what you exactly mean by "groups contents in a nodes view"?

πŸ‡¬πŸ‡§United Kingdom farse

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

πŸ‡¬πŸ‡§United Kingdom farse

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.

Production build 0.71.5 2024