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
-3 votes
0 answers
34 views

PluginNotFoundException: The "google_json_api_search" plugin does not exist

I just switched my branch back to master and was met with this dreaded message: The website encountered an unexpected error. Please try again later. Drupal\Component\Plugin\Exception\...
  • 15
0 votes
0 answers
10 views

Elasticsearch connector returns too many results

We are using the Elasticsearch connector and we noticed some inconsistent results in the search, specifically on acronyms or short words like sts, .net, crm. I set the fuzziness value to 0, and this ...
1 vote
0 answers
18 views

How to exclude a field from the SOLR search index for a specific content type

I would like to exclude all body fields from the search index for a specific content type. Reason: We have an Author content type with a bio in the Body field. However, for searches, we only want the ...
0 votes
0 answers
20 views

Pre-flag facets when searching products

I created a site with Drupal Commerce and I use search api (fulltext) and facets to search for products. The search works very well and also facets, but I would like to know if there is a way to have ...
  • 11
0 votes
0 answers
17 views

How to set up search_api to search short words with special characters

I was trying to set up search_api but I feel like I have tried all the settings and nothing seems to work. I need to search for names of products, e.g. "T+A M 40 HV". When I apply the search,...
  • 424
0 votes
0 answers
26 views

Search API Solr sorting with Entityqueue

i have a Drupal search api view with solr. I want to use entity queue for sorting the view and setting a specific order of nodes. However this does not work at all. I have added the relation with ...
0 votes
0 answers
18 views

Search Facets - Entity Type

I want to create a facet to filter search results by entity type (node and product in this case). I have the entity_type field added to my index ... And I have a facet set up that seems like it ...
-1 votes
2 answers
44 views

How can I translate Olivero default search string? [closed]

In the default theme for Drupal 9 (Olivero) I have the following string in my search box field: Search by keyword or phrase. I have tried to change it by going to admin/config/regional/translate (...
1 vote
0 answers
36 views

Facets not working with Algolia search

I am implementing Algolia search and using the following contributed modules Search API Algolia Facets After configuring the modules, the content/data indexing is working fine and is reflecting on ...
-1 votes
2 answers
49 views

Creating a category page when using the Search API module

I’m trying to build a Drupal Commerce store which is going to be my first timer with Drupal 8+. However, the approach described in the Drupal Commerce documentation regarding the creation of a ...
  • 424
2 votes
0 answers
52 views

Get Drupal core search results via jsonapi

I am using the jsonapi module to get node content for specific bundles for a mobile app and i am familiar with the filter, include and sorting concepts of the jsonapi. Now i want to get search results ...
  • 131
1 vote
2 answers
55 views

Can't uninstall default search module because the Commerce Base module is required

I want to use Search API + Solr on my Drupal (& Drupal commerce) site. The tutorials recommend to uninstall the core Search module. However, I can't: the UI at page /admin/modules has Search ...
  • 26
0 votes
1 answer
51 views

Rewrite url facet by taxonomy term machine name

I have a multi-facet search page, with those 2 facets : poste and type_de_contrat (= internship, open-ended contract...) It's working fine, but I'd like to rewrite the url, because it looks like this :...
  • 69
0 votes
1 answer
65 views

Show the count of the total results when searching with a search api solr view [closed]

I am working on a view which uses Search API Solr. When I search for an article, I want to see how many results Solr has found. How can I do this in Drupal 9?
  • 25
0 votes
1 answer
27 views

Exclude taxonomy terms from being choosen in facets

I am working on a search field with a facet which has a list of taxonomy terms. Some taxonomy terms I want to exclude from being choosen, because it is not relevant for people to know about. How can I ...
  • 25
0 votes
0 answers
36 views

Why are facets not displayed on pages?

I have two entities: Entity Product and Entity Product Category. Entity Product has an entity reference field on the Entity Product Category. Goal: Display categories and their number on the right by ...
  • 11
0 votes
0 answers
16 views

Solr still showing indexed items after clearning

I have a solr install that is hooked up and running. After clearing the index I am still getting search results to show up and the solr server is saying that there are still 19363 items indexed when ...
  • 353
0 votes
1 answer
27 views

Remember the order facets where selected

The search API stores facets with a key and the URL is usually something like ?f[0]="facet_0&f[1]="facet_1"&f[2]="facet_2" Unfortunately, this array is rebuilt on each ...
  • 353
0 votes
1 answer
52 views

Add a placeholder to search input text field [closed]

How can I add a placeholder for the input text of the search block (Search on my website)? I've looked around, but on Drupal 8 template.php has been deprecated and it's not an option. I also need to ...
0 votes
0 answers
37 views

How to group some exposed filters in a collapsible block

I have a view with several exposed filters The theme is based on bootstrap, so I'm looking for a way to group some of them within a collapsible or accordion block (Bootstrap example) I'd like to avoid ...
0 votes
1 answer
33 views

Render a fulltext exposed search bar separate from the rest of the filters

I would like to render my exposed fulltext search bar in a separate location from the rest of my search filters. My other exposed search filters are things like display number, sort order, etc... I am ...
  • 353
1 vote
1 answer
33 views

Search is very slow for certain roles

I'm a bit lost here. I have a strange problem and don't know where to begin. I use the core search function on a website I build. When I am logged in as administrator this search function is working ...
  • 956
0 votes
1 answer
41 views

How do I apply different styles according to content type?

in a view I'm filtering content with search API /facets. In the view (field format) i've applied a specific style for the results, some sort of Bootstrap card. IT apply to all content index by search ...
0 votes
1 answer
48 views

How do I select multiple values with one checkbox?

With Facets module/search API, I have a checkbox filter where I need to merge some value. Example: vocabulary = color term = light red term = dark red term = light blue term = dark blue In this ...
0 votes
0 answers
219 views

How to alter the end date views query for search api

I'm trying to alter an exposed date filter in a view I created that uses solr search api. I noticed that the end date filter doesn't work unless I add a day to the end date. so for example if i have ...
  • 408
0 votes
0 answers
14 views

Show two unique exposed filters in different blocks for the same view

I have a view that has 3 exposed filters; two Taxonomy Terms and a Search Field. I want the two taxonomy terms to appear in the Left Sidebar and I would like the Search Field to appear above the ...
  • 353
0 votes
0 answers
36 views

Drupal Solr No Results

I have a SOLR sever set up (using platform.sh). I have it configured, connected, and indexing. However, I get no results when I search. (I've tried search api pages and views - no results with either)....
  • 482
2 votes
1 answer
372 views

How to create a Solr search with partial matches and autocomplete?

I configured a search box for a drupal site and am a bit confused on how to get a search working with partial matches and a sensible autocomplete. Some basic details: Drupal: 9.3.9 Modules: Search ...
-3 votes
1 answer
56 views

How do I add an exposed form to search products?

I installed the Search API module and followed the documentation to set up an index and a search box using views and facets. It doesn't show an exposed form to search, even though there is a view and ...
0 votes
0 answers
56 views

Solr search field mapping

In drupal 8 solr search not bring the result on some keys which are exist in solr data but due to solr dynamically added prefix in key fields unable to get search results on some key fields. I think ...
2 votes
1 answer
187 views

Is there a way to default sort by date when no search keywords have been used, but default sort by relevance for all searches?

At present, my project has default search pages for sections of the site. They are per-content type. When the user goes the "search page" for the content type, they see a views-generated ...
  • 181
1 vote
0 answers
27 views

Add Relationship to Entity in a Content Datasource View?

Good afternoon, I have configured a (Search API) search index using an entity content type, but I don't need to index all the fields. Is there a way to add a relationship to the referenced entities in ...
  • 133
0 votes
0 answers
12 views

Search View location filter not working after change from Solr to DB server?

I have a search view that allows the user to filter a list of people by distance from a location the user can input. This uses the 'Location: latlong pair' as the filter. Unfortunately we've had to ...
  • 161
3 votes
2 answers
512 views

How to re-index all content for the core search engine?

Is there a way to re-index all content for the core search engine? In older versions, you could reindex with drush: drush search-reindex --immediate --verbose However, this does not appear to be an ...
0 votes
1 answer
23 views

Does the "Search keywords" exposed filter depend on the core search index?

If I create an exposed Search keywords filter for a view, does this functionality depend on the core search engine? Do I need to index the site at admin/config/search/pages for a Search keywords ...
1 vote
1 answer
63 views

How to place facet blocks

I got Search API and Facets configured, built a View Source, and connected the Facet to that source. Now I'm stuck with how to present that widget! With D7 Facets, it configured Blocks that I could ...
  • 133
0 votes
1 answer
90 views

Sorting on a custom date field is slower than sorting on relevance: Is there a solution?

I'm using search api with database backend on a Drupal 9.3.3 site. I've indexed 26,000 nodes of a custom content type and these include a custom date field: field_display_date The index is set up to ...
  • 181
0 votes
0 answers
31 views

Search views broken/missing after upgrading Drupal 8.9x to Drupal 9.3x

Getting error in search FILTER CRITERIA after upgrading Drupal 8.9x to Drupal 9.3x please look into the image. We are using : solr server v6.6 Modules : search_api_solr - 4.2.3x search_api - 1.22x ...
1 vote
0 answers
21 views

Search: Do not index some parts of HTML

We're indexing the rendered HTML output (rendered_item, type "Fulltext") of pages into elasticsearch using elasticsearch_connector. Some parts of the HTML shall not be indexed because they ...
  • 144
1 vote
0 answers
55 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,747
0 votes
1 answer
305 views

Display Fulltext search 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 of the search results ...
  • 2,038
0 votes
0 answers
70 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: ...
  • 13
0 votes
1 answer
67 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,037
1 vote
0 answers
417 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
1 answer
227 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 ...
  • 2,478
0 votes
0 answers
95 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, ...
  • 2,747
0 votes
0 answers
126 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 ...
  • 103
-3 votes
1 answer
39 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 ...
  • 43
-1 votes
1 answer
32 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 ...
  • 91
2 votes
0 answers
104 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? ...
  • 181

1
2 3 4 5
39