Skip to main content
494
results
Andrew Fletcher
Adding basic security to your server, requires altering the security.json file.  For me this file was located /var/solr/data/  Add a User or Edit a Password The set-user command allows you to add users and change their passwords. For example, the following defines two users and their passwords: curl --user solr:SolrRocks http://localhost:8983/api/cluster/security/authentication -H 'Content-type:application/json' -d '{"set-user": {"andrew":"andrewsPass"}}'  Delete a User The...
Andrew Fletcher
What am I setting out to achieve? I want to meet the following...
Andrew Fletcher
Having access to a site’s URL in your templates can come in handy for many...
Andrew Fletcher
Having Drupal Solr Search APi running, I thought adding synonyms to the mix...
Andrew Fletcher
I want to create a content type that has a paragraph.  Easy enough. What...
Andrew Fletcher
Creating URL's in Drupal programmatically: Internal path use Drupal\Core\Link; use Drupal\Core\Url; $internal_link = Link::fromTextAndUrl(t('Drupal nodes'), Url::fromUri('internal:/node', $options))->toString();  External Url use Drupal\Core\Link; use Drupal\Core\Url; $external_link = Link::fromTextAndUrl(t('Codebales'), Url::fromUri('http://www.codebales.com/'))->toString();  Url with options use Drupal\Core\Link; use Drupal\Core\Url; $options = array( 'query' =>...
Andrew Fletcher
Working in Drupal 9.x, I was loading images via the Media module.  Below 1...
Andrew Fletcher
Have you tried to run a composer update script that...
Andrew Fletcher
Since upgrading to Drupal 9.3.0 have you come across this error? Edit...
Andrew Fletcher
Have you noticed through your Google account that there are items being indexed...
Andrew Fletcher
Like many devs at the moment, looking for log4j2 on your server... how to do? First I used the command find / -name log4j2.xml -type fWhich in turn produced the following results /opt/solr-8.5.2/server/resources/log4j2.xml /var/solr/log4j2.xml  Version Ok, so log4j2 exists on the server the client is using... in Solr.  How about determining the version number? The version here matters as 2.15.0 is good to go.  To find the version use sudo find / -name 'log4j*' The output of...
Andrew Fletcher
I’m recently doing an IoT project. I wanted to investigate the network...
Andrew Fletcher
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how...
Andrew Fletcher
I had a couple of instances where I needed to check if an object field...
Andrew Fletcher
In drupal 9 for logging you can use logger service to log array data...