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
vote
0answers
21 views

How to hide a facet item if it does not narrow the results?

I have a facet of taxonomy terms with the links widget. There are 3 taxonomy terms displaying with the number of results in the bracket. Term 1 (3) Term 2 (2) Term 3 (10) When I select Term 1, the ...
-2
votes
0answers
15 views

Create custom search_api_item

I have an entity that doesn't have translation, because it doesn’t need, but I need to create search_api_item for each site language. So I need to create next items: entity:myEntity/1:en, entity:...
0
votes
0answers
17 views

Display Search API Solr query string on Search Results page

This is probably much simpler than I'm imagining. Client wants to display the user-entered search query string, with a label (like "Search Query" or "You Searched For"), at the top ...
0
votes
0answers
19 views

Split a hierarchal taxonomy into multiple facet filters

I'm currently working with an E-Commerce site in Drupal 8 that contains multiple products and multiple specifications set up in a hierarchical taxonomy term called Specifications like this example: ...
0
votes
1answer
21 views

How can I display the current Search API filters to the user?

Using Search API and Facets on Drupal 9. If a user selects some filters (facets, text), how can we display the current search criteria to the user? For example, similar to a breadcrumb list shows all ...
1
vote
0answers
44 views

Search API + Facets: Overwrite facet output and conditionally alter query condition based on active filter

I have a date field on hundreds of nodes indexed. I created a facet for the date field but it displays all dates available (ew). Instead, we'd like a filter for "Available Now" nodes and &...
0
votes
0answers
12 views

Unable to filter fields in Search API Solr index Query

I'm trying to run a Search API search programmatically on my solr index. The issue is that the query is quite expensive so I'm trying to reduce the cost by filtering for specific fields. In Solr I ...
0
votes
1answer
47 views

Create solr_core for search_api_solr 4.x with docker solr 8

I used to create my solr instance for drupal like this: docker run -v $PWD/solrconf:/asdentcore -e SOLR_JAVA_MEM="-Xms2G -Xmx2G" --restart unless-stopped -p 8984:8983 -t --name ...
0
votes
0answers
19 views

Search API views is displaying empty pages

My search page is displaying results. The pager is displaying. But the first 15 pages display no results and then on the 16th page, I can see the content. I have deleted all the data from the index, ...
0
votes
0answers
53 views

Split taxonomy terms in two facet filters

English is not my first language, so please be patient. I'd like to ask for assistance to split my taxonomy terms in two facet filters. Context: Drupal Core v9.2.6 Acquia Search v3.0.5 Acquia ...
-3
votes
1answer
18 views

Search and pagination in media popup don't work properly [closed]

In the /admin/content/media page, I have more than one button for the pagination. The search is working properly. When I edit a media on some node, in the popup, I only have one button in the ...
-1
votes
1answer
21 views

How do I list all users in a view that have created a node with certain taxonomy terms?

The goal is to create a view to list users on a page with url /search/[category]/[topic]/[location] where "category" "topic" and "location" are taxonomy fields in nodes ...
2
votes
0answers
24 views

Search API fulltext search that includes entity reference fields in the 'search index' display mode: Is this the correct configuration?

To get entity reference field values (not IDs) to work in full text search, is it necessary to add each entity reference field's "name" to the index as a separate field of the fulltext type? ...
1
vote
0answers
43 views

How to create a search api facet for filtering user access

I'm trying to figure out how to create a search api facet, that will filter results based on user access. By default, I'm bypassing access check hence showing all the nodes. I need to add a checkbox, ...
0
votes
1answer
25 views

SOLR displays "submitted by username" only for the Article content type. How do I stop this?

No matter what I do, I can't seem to remove the Submitted by [username] from popping up in my search results for the Article content type. I'm using the Apache SOLR module. If you visit the article ...
0
votes
0answers
45 views

Search API - Can't get result items

I installed Search API, created Search Index, and it's using the Solr server. When I execute the query and debug the code afterward, I get 3 result counts. And for result items, I get an empty array. ...
1
vote
0answers
16 views

Adding a relative date range facet to a Search API view using the "last updated" field

I would like to add a facet to a search_api view filtering on the content "changed" field. I would like to use friendly naming like "This week", "This month" etc. There ...
2
votes
1answer
54 views

How can I index arbitrarily related entity data in a Search API index the same as if it were an entity reference?

I have a site with three content types: Collection (references a paragraph that references Articles) Article (references Authors) Author I have listing page displays for each of these content types. ...
1
vote
0answers
25 views

Display multiple values in separate rows with view that uses Search API

Yesterday I asked this question, but after realizing the issue was specific to my view relying on an indexed field using the Search API module I wanted to make another post getting more specific help. ...
4
votes
1answer
278 views

How can I add a boost to a search_api_solr query if a field has a value?

I'm trying to add a boost to a search api Solr query when a field has a particular value, e.g. when its nid = 123. Looking at Solr version 8.7 docs for boosting (my solr server version), this looks ...
3
votes
1answer
42 views

How to get all search results of search api index?

I want to get all the search results from the search API index and then perform a custom sort on it and then display them accordingly. I used the hook_search_api_results_alter and also the search ...
2
votes
0answers
27 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
46 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 ...
1
vote
1answer
91 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
18 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
vote
1answer
87 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 ...
0
votes
0answers
32 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
19 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
58 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
48 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
77 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
25 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
86 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
25 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
19 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
41 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
18 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
104 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
44 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
203 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
31 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
64 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
117 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
20 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
24 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
43 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
91 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
51 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
1answer
50 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
2 3 4 5
39