Questions tagged [search]

Use it for the Drupal core module or any module extending its functionality, or aiming to replace it.

Filter by
Sorted by
Tagged with
-1
votes
0answers
4 views

reindex_after_diacritics_rule_change

I am getting following message after upgrading to recent D8 version. The following updates returned messages: search module Update reindex_after_diacritics_rule_change Content has been marked for re-...
3
votes
0answers
21 views

Shared Facet between Taxonomy and Content Field

My search page needs to show results from both content types and taxonomies. Both the content type and taxonomies that I am searching on have a field called training_location. The training_location ...
0
votes
1answer
41 views

How to create a dblog record from a views exposed form submission

I am trying to create a log record of searches made though my Search API View exposed form block in Drupal 9. For some reason on a brand new search I get 2 duplicates (3 total entries), and it seems ...
0
votes
0answers
21 views

TypeError for Argument 2 in Solarium Client [closed]

I'm trying to start a client using Search_api_solr v4.1 and Solarium v6.0 but I keep getting a TypeError. TypeError: Argument 2 passed to Solarium\Core\Client\Client::__construct() must be an ...
0
votes
0answers
48 views

I installed Solr for the Search API Solr can someone can give me hints what i could have done wrong?

I'm currently running a CentOS 7 server with cPanel and Drupal 8. I installed Solr 8.8.1 and I can access the administratrion page where I an able to create cores. I installed the Search API module ...
0
votes
0answers
13 views

How to index only end dates in the aggregated field in the search api?

I have two date range fields on two different content types. I want to index only the end date of both of the date range fields. I can do it by simply clicking the plus icon on the field and add the ...
0
votes
0answers
17 views

I need to split Solr index from view

My page has details from two content types. Product Line, a vendor dealing with different products having its attributes Document Library Item, a common content type for files like images or brochure ...
-1
votes
0answers
10 views

Can we have widgets like search-box for Facets search

I have a View page, where different types of search present :Checkboxes, Date-Range and Dropdown using Facets. I need to have another search type like full search box, where user can enter full title ...
1
vote
1answer
55 views

Redirect Search API view result (Leaflet map) to display in a pane

The particular Search function starts as Full Panel Page in a style to a Google Maps Location Search page; Search Input (Block) to the top left overlaid on a current Leaflet map based on the logged-in ...
1
vote
0answers
25 views

Search Api display search term in form

How do I display the search term after I have run the search. Here is my form: <input data-drupal-selector="edit-search-api-fulltext" id="edit-search-api-fulltext" placeholder=&...
0
votes
0answers
17 views

How to create a search page that searches in a custom csv or excel file and shows Exists/Doesn't Exist result?

My website is on a shared host and cannot use tika because Java is not executable. So the search file attachment module does not work properly. Any help will be greatly appreciated.
0
votes
0answers
14 views

Configure Facets to drill down one level at a time

I have vocabulary ("Subtype") hierarchy like this... CP LP ML U BL FL AD MA PD OPD SG I have a field on my entity type field_subtype. What I'd like is to configure my search api ...
0
votes
1answer
16 views

How to change Search API index field machine name?

I am using Search API and Search API Solr modules on drupal 7. I have also drupal 8 and drupal 9 sites, and all those sites are indexed on the same solr index. So I need the same machine name for ...
0
votes
0answers
21 views

Comments Indexing with Search API

I'm having the issue generating the indexing for comments with Search API. While configuring, I used the datasource comments and added following fields for indexing. comment_body, cid, comment_type, ...
3
votes
1answer
44 views

What's the difference between indexed and non-indexed field in Views and Search API?

I'm using Search API with a database backend and Views to build the search results page. More specifically, I'm using fields in Views. When selecting fields, I see two options for example: Title ...
0
votes
1answer
20 views

Exract all node field values to json including reference entities with value

I am writing a module to export drupal's content to another platform, the module provides a UI to manage content types and their fields to be shared on another platform via API. So far i have managed ...
1
vote
0answers
41 views

Facets with 40000+ taxonomy terms make page load slow

I am running Drupal 8.8.1. I have Search API Solr 8.x-2.2 and Facets 8.x-1.3. I have 40,804 taxonomy terms. I added this taxonomy term in my solr index as string. I already have a view page . I added ...
0
votes
0answers
18 views

Make Boolean filter FALSE accept null [duplicate]

Have content type Article. Content type Article has a field, called "Need Further Review", of boolean type. This field is not required, default value FALSE. The articles has value TRUE, ...
0
votes
0answers
9 views

How should I add punctuation to ElasticSearch highlighting snippets?

I have implemented ElasticSearch in a website for one of our clients. We did this by using a SearchAPI Page, instead of a View (which I read here and there), but I think that doesn't matter to my ...
0
votes
1answer
30 views

How do I alter a form submission handler?

I want to alter the form submission handler submit for the search block with a custom module. Setting $form['#attributes']['class'] works, but the submission handler doesn't seem to be triggered with ...
0
votes
0answers
11 views

Adding a class if views search facet has been used

In a Drupal 9 with Search APi and Facets the aim is to make the views search api list with all items (lets call it the 'unused state') in an opaque state (or similar) and the facets in full opacity. ...
1
vote
0answers
64 views

Fetching breadcrumb in search result list

I am trying to get the breadcrumb, for nodes in search result listing. I came to know that breadcrumb by default fetches the current node context, so I followed the suggestion from here - How do I ...
0
votes
1answer
23 views

Search api, postprocess processor: how re-run the query?

The documentation of the search api module says, about postprocess processor: Postprocess query This is probably the rarest phase for processors to use, postprocessing the query after it has run to ...
0
votes
1answer
30 views

How do I set the default value for results?

I'm on Drupal 9 and I have an AJAX view with a page display and an exposed filter block and a single filter exposed, "Search: Fulltext search". The Search API module is configured to search ...
0
votes
1answer
20 views

How do I create a filter based on the current user's role in a search_api based view?

I would like to filter a search_api based view using the current user's roles as input. I don't see a contextual filter for the current user in my search_api based content view at all. How can I ...
0
votes
0answers
42 views

Drupal 8 purge module to allow SOLR index replication before cache invalidation happens

I am having a Drupal 8 website running over Acquia Infra. I have recently configured Purge module to invalidation cache over Acquia varnish and Cloudflare when cache-tags gets Invalidated. Problem: ...
1
vote
1answer
46 views

Unable to get titles to show up as higher priority in search than content

I have a website I am working on that has a TON of content. The client has noticed that when searching for titles in the site search, it seems to prioritize the body content over the title. So I ...
0
votes
0answers
18 views

How to speed up tracking in elastic search?

I have been experiencing extremely slow rebuilds of the search index on our client site which is currently indexing almost 4 lakh nodes, before indexing we need to complete the tracking process. But ...
0
votes
1answer
16 views

How do I set filters to reset automatically on new search?

I have a search and some filters on a drupal 7 site. If I search a term, for example "stuff", and there are 30 results, I can click a checkbox filter (let's call it FilterA) on the side and ...
0
votes
0answers
13 views

How do I set a grouped exposed filter of boolean fields in a view?

I have a view with fields used as filters and exposed to user in a dropdown. They are "grouped" in the filter section. These fields are boolean. I can't get them to work together. It's ...
-2
votes
1answer
49 views

0% of the site has been indexed. There are 400 items left to index [duplicate]

Drupal core search doesn't re-index the site and it always shows this message. 0% of the site has been indexed. There are 453 items left to index. What settings do I need to change to make Drupal re-...
0
votes
0answers
19 views

Drupal search, nodes with same title

I do have nodes with the same title however they are designed for different countries -smart ip. So someone is Russia will see Apple is great node id 12 jjdesigned for Russia that is different from ...
0
votes
0answers
31 views

I can't get the summary field of a custom content type to appear in the search result

I've been trying to get my custom content type to have its summary field display in my site search. Other content types like articles will display a summary, but my custom one won't. I've checked the ...
0
votes
0answers
17 views

What is the difference between index all on a node and indexing that takes place after node save for a rendered html node on a solr index?

If a page containing panels is indexed as a rendered item, when indexing all the content of the panels is not included in the index. However if you save the node then the content of the panels is ...
0
votes
1answer
39 views

Apache SOLR index or retrieve the node a file is attached to

I'm building a search engine with Apache SOLR (8.7.0) where PDF files are indexed and searched through, that part is working (with search_api_attachments in case you're wondering). However, the client ...
1
vote
1answer
89 views

Custom field for Search API with multi values

I'm using latest version of SearchAPI (1.18) and SearchAPI Solr (4.1.10). I've a custom field that I want to have multiple values (I use it for faceted search with Facets module). In the previous ...
0
votes
0answers
21 views

How to include a views page (or an URLs rendered HTML) into Search API index?

How can I include a views page into my Solr Search API index? When configuring the index, I can select all kinds of content entities, but views pages are config entities. In my project, I've got one &...
0
votes
1answer
68 views

What causes a search_api based view to stay cached for anonymous users even after the index is updated?

I have a search api based view. The index this view is based on indexes new content as soon as it is published. When new contest is published, logged in users can indeed see the latest content at the ...
0
votes
0answers
19 views

Filter Content and Files using the same Taxonomy term filter in Search API

I have several File (File Entity) and Content (nodes) types both referencing the same Topic taxonomy using the same field (one field, reused). The contents of these files/content are indexed in the ...
0
votes
0answers
34 views

Filtering by User Reference with JSON API

I try to filter some data by User Reference. My problem is, it return me an empty list "data": [] It only works if the authenticate user own's the data... My request : {{url}}/api/node/...
-1
votes
1answer
20 views

How to display default drupal search block in twig template

In twig_tweak module before version 2 (for Drupal 8) I could place the following code in my page twig template and it would work: {{ drupal_block('exposedformsearch_contentpage_1') }} This would ...
0
votes
0answers
151 views

Remove duplicated results - Apache Solr

English is not my native language so please be patient. Good afternoon, my Drupal 7 site is currently holding several articles, help topics, and document guides that are versioned, i.e search the &...
-1
votes
1answer
82 views

Search API location distance filter not working

I'm trying to create a search page with Search API Solr, Search API location and a Geolocation field. I've got my view, and my lat/lng fields are correctly indexed. E.g. I've selected these fields for ...
0
votes
1answer
59 views

How can I programmatically change the parse mode?

We have a view that works with Search API and Solr search. The multiple search terms work with single quotes and with no quotes. I want to make the search terms work with double quotes as well. The ...
1
vote
1answer
55 views

Global $pager_total_items replacment

I updated a website to Drupal 8.9.6 version. I saw that the global variable $pager_total_items was used, but is deprecated since D8.8.0. So, I'm looking for an alternative to retrieve the total items ...
1
vote
0answers
33 views

Search API custom query processor [closed]

I would like to create a custom query processor to filter Commerce products, based on a user field and a product field. Users have a boolean field "hide special products", and products have ...
0
votes
1answer
33 views

Search API Database Search score calculation

I'm trying to understand how the Search API Database Search calculates the score for a search result. I understand Solr uses the Lucene scoring model and there's also command that can be used to ...
0
votes
0answers
26 views

How do I generate a search snippet similar to core search for a custom search API page?

I installed solr and search_api and search_api_pages. It's all working as expected but, for now, my new search page need a lot of configuration to display correctly. Unlike drupal core search, which ...
0
votes
0answers
372 views

How to add “null” value in elastic search field if data is empty?

This might be long , but I am trying to make understand my problem. If a field is having empty data then that field is not coming in elastic search index. I want to print something like empty or null ...
0
votes
0answers
20 views

Search API autocomplete: How to get Node ID in suggestions?

I am using https://www.drupal.org/project/search_api_autocomplete for autocomplete search results is it possible to get Node ID with suggested results? Thanks

1
2 3 4 5
39