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
1 answer
74 views

Getting the "Solarium @version is too old" error after upgrade

I recently updated a Drupal 9.3 site to Drupal 9.5 and most of the contributed modules were updated to the latest version that supports both 9 and 10 in view of an upcoming Drupal 10 upgrade. On the ...
Binny's user avatar
  • 890
0 votes
0 answers
31 views

JSON:API does not return relationships with pagination

When I use /jsonapi/index/products?include=field_product_image, it returns image details inside 'included' parameter in the response. When I use /jsonapi/index/products?include=field_product_image&...
user113095's user avatar
0 votes
0 answers
19 views

Facet active status is not showing correctly

Hi I' am using JSON:API Search API and Facet for my headless search page. This is the API endpoint I am using. /jsonapi/index/products?filter[field_tags]=15 I get this response. But in response active ...
user113095's user avatar
0 votes
0 answers
45 views

Search api solr - index based on field rather than entity

I have a custom field that has 3 columns and I'm trying to create search page (search_api, solr and view based on search api index to display data) that will perform a search on this field (attached ...
roman's user avatar
  • 21
1 vote
2 answers
81 views

Search API Solr: Correct Field Data Type?

I'm running Drupal core 10.2.1, Search API Solr 4.3.1, and Solr server 9.4.0. I've noticed that some searches aren't finding indexed content and I'm wondering if the field type definition is correct. ...
Scott Hollenbeck's user avatar
0 votes
0 answers
19 views

How do I make a query to my index that includes a hierarchical facet programmatically?

I need to make a query that includes a hierarchical facet. I've already managed to make a query that includes facets. What happens is that I have an index with many objects that are related to a ...
Oswaldo Cabrera Pérez's user avatar
0 votes
1 answer
28 views

How to switch template for search results without using views and display modes?

I want to show my Drupal 10 Solr search results in either grid view or list view. I set this up using Views and Display Modes, and I have icons on the page which simply link to the URLs of the ...
Lemmy's user avatar
  • 201
0 votes
1 answer
53 views

Indexing PDF files without java

Is there a way to index PDF files so that they can be searched (the text inside the PDF) without using java? Our host refuses any software that requires java, and every module I've found has required ...
Jenni Simonis's user avatar
1 vote
0 answers
43 views

Views filter with category name

I have built a blog listing page that uses a blog_listing view (set as a block, not page) in it (Drupal 10.1). Here is the setup for the view: As you can see, I have three exposed filters. Blog ...
Akbar Bakhshi's user avatar
0 votes
0 answers
51 views

Configuration dependes xxx configuration that will not exist after import

I have this scenario that is basically the opposite of "it works on my machine" - mine is the only one where it doesn't work. when running drush cim I get this error: In ...
Jonatas CD's user avatar
1 vote
0 answers
31 views

How do I always show full search result pages in cases where some results are removed due to access restrictions?

I have a solr search index set up and a view to search content. We have "Region" groups for members so they only see content from their region. The search works great as admin who has access ...
James Prunty's user avatar
0 votes
0 answers
28 views

How to make autocomplete works with the Japanese language?

I'm working on setting up search with the Search API module and Elasticsearch, for the Japanese language. Following what described in How to implement Japanese full-text search in Elasticsearch, I ...
Nasreddine's user avatar
0 votes
1 answer
101 views

How to have views exposed filter value show as different value in the url?

I have a search page with a Views exposed filter for the name of a taxonomy term. I have added an #autocomplete_route_name to the form element to make this an autocomplete selector for my term names. ...
liquidcms's user avatar
  • 1,248
0 votes
0 answers
32 views

What hides nodes from roles in search results using Solr?

We are hosted in pantheon and using Solr for search. At some point in the build process search stopped working for specific roles. As an admin I see all the nodes I would expect. however for some ...
BrandenB171's user avatar
  • 1,112
1 vote
0 answers
217 views

How to create a custom field/facet for Search API?

My Search API search page has a facet for Content Type, but I now want to add a custom entity in to the list of "content types" that users can filter on. I found some documentation on ...
liquidcms's user avatar
  • 1,248
0 votes
0 answers
24 views

Display fields from entity reference revision, without indexing them

Scenario (simplified) A content type with a number of fields. One of the fields is (optional) single-value entity reference revision, pointing to a custom entity type with more fields. There are 3-4 ...
donquixote's user avatar
  • 3,632
2 votes
1 answer
89 views

Search API autocomplete view mode template

I got search api autocomplete setup and using the live results feature I was able to set it to use my Search Autocomplete view mode. I am trying to figure out what the twig template name would be. Any ...
Ronnie's user avatar
  • 487
0 votes
1 answer
73 views

Solr autocomplete does not work for Product Variations

I am trying to create a sitewide search using Solr. For this, I indexed Product Variations and Content entities as Rendered HTML Output. When I try to search for a content entity, the autocomplete ...
EvilArgest's user avatar
2 votes
1 answer
306 views

How can I change the query string used in pages showing search results from keys=football to keyword=football?

Search results are given in a page whose URL is, for example, https://example.com/search/node?keys=football. This URL is not recognized by Google Analytics as a search result URL. How can I change the ...
Juc1's user avatar
  • 369
0 votes
0 answers
33 views

Solr: Avoid spell check on numbers within the string field

I've 2 fields title and description in apache solr, both are the text_general field type contains string as well as numbers and I applied the spell check on both field by createing single copy field ...
Abhi's user avatar
  • 1
1 vote
0 answers
140 views

Search API Solr: How to highlight search term in indexed HTML?

How can I configure Solr to index a search result view mode, and render that indexed content with the search terms highlighted without highlighting text in attributes? We are indexing a "Search ...
sonfd's user avatar
  • 7,871
1 vote
1 answer
89 views

/search-results page returns 404 if no query parameter is present

I have inherited a Drupal site with a node that uses /search-results as path alias. The page works fine if I use https://example.com/search-results?keys=test or https://example.com/search-results?keys,...
user110161's user avatar
0 votes
0 answers
60 views

Override the results of Search API pages module

I have disabled the default search and enable module 'Search API' and Search API SOLR(used for Backend) to perform search in Drupal 9. I have also enabled Search API pages module and created a search ...
Christoforos's user avatar
0 votes
1 answer
31 views

Is it possible to have a Search API Facet to expand the results? Basically, querying this facet OR this facet?

We have a Search API View (Solr) using facets and our nodes have two separate fields for the facets. One is an address field and the facet is built on the address US States and the other field is a ...
quantumized's user avatar
  • 1,217
0 votes
0 answers
61 views

Ss it possible to add alter query to add an "OR" operator condition to Search API alter that actually expands the results?

We need to alter a Search API query using hook_search_api_query_alter() to add an additional condition OR condition that is "any of the previous condition OR this new condition" Example: We ...
quantumized's user avatar
  • 1,217
0 votes
0 answers
14 views

How to make a Search API Facet to expand the results (the operator is set to "OR" but does not change the results)?

We have a Search API index with some Facets to limit the results by "State" and "Category" with another facet to "Include National" and the operator is set to "OR&...
quantumized's user avatar
  • 1,217
0 votes
0 answers
147 views

Customize search results page

Is there a specific way to customize the search results page in Drupal 10? I would like to change the look of how the results are displayed. I have used Views to create the look how list items but I ...
timmyblaze's user avatar
0 votes
1 answer
106 views

Using views_query_alter() hook to dynamically add a OR "where" to a Search API View?

We have a Search API View that we need to dynamically include results to the query that where filtered out. The use case is that the Search Index View shows a filtered list of node but we have a ...
quantumized's user avatar
  • 1,217
1 vote
1 answer
45 views

Display only search box with live search and no content with results

I have configured search API with autocomplete, the search box is exposed in a views block. But the block displays the default 5 results below the search box even if the box is not used yet. I want ...
Tomáš Bažant's user avatar
2 votes
2 answers
420 views

Edit index config (Search API) programmatically and get the status index updated

I have a site with 14 pieces of news and 44 basic pages. I have created an index (Search API) with this bundle: and this is the index status (the content is already indexed during cron): When I ...
rpayanm's user avatar
  • 3,601
1 vote
0 answers
88 views

Search API Facets: Filtered Results to Map (Leaflet) Shows No Updates to Views Page

When using post search results via a Search API Facets for node data, the initial results are displayed as a map content type (Leaflet) but when filtering down to further fields, the results page ...
Paul B's user avatar
  • 579
1 vote
0 answers
72 views

Is it possible to use OR condition in search_api_index view for exposed filters like "Fulltext search" or "Combine fields filter"

I have created search_api_index view. And I want to add filter criteria like on screenshot. or I choose OR condition, but the AND condition still works. It seems that OR condition is not applied. Is ...
Alex's user avatar
  • 348
0 votes
1 answer
118 views

Facet blocks in a dialog don't retain applied facets

Cross posting an issue I posted from Drupal.org in the hope that it gets a bit more visibility here. I'm currently loading facet blocks via AJAX into an off canvas dialog provided by the core Dialog ...
Chapabu's user avatar
  • 13.8k
0 votes
0 answers
47 views

Custom sorting using a MySQL statement instead of simple field

I'm using a view to list products from db index. I want to implement a custom sorting (my goal is to sort by current taxonomy term page, products having a specific node field field_MY_FIELD_NAME = ...
Boussetta moez's user avatar
0 votes
1 answer
689 views

sort api solr search using custom view field using hook_views_query_alter()

Drupal 9.4.8. Search api solr 4.2.9 I have created a search api solr search in views One of the fields included in this view is a custom view field: node_date_raw_field From module hook_views_data():...
SomebodySysop's user avatar
2 votes
1 answer
98 views

Is there a way to retain core search logging instead of having it get deleted with the watchdog logs?

We're using the core search module on a D9 site and use the "Top Search Phrases" report for search tracking but the results get stored in the watchdog table so they get cleared out when the ...
quantumized's user avatar
  • 1,217
1 vote
0 answers
48 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 ...
Brian Gregory's user avatar
1 vote
0 answers
128 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 ...
Dylan Spencer James's user avatar
0 votes
0 answers
94 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 ...
Thomas Crawford's user avatar
1 vote
0 answers
98 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 ...
Delford Chaffin's user avatar
-1 votes
2 answers
58 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 (...
rottermann's user avatar
1 vote
0 answers
137 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 ...
Mohit Wadhwa's user avatar
-1 votes
2 answers
202 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 ...
crzpiot's user avatar
  • 434
2 votes
0 answers
86 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 ...
makkus's user avatar
  • 141
1 vote
2 answers
213 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 ...
rs211's user avatar
  • 26
0 votes
1 answer
333 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 :...
lobafox's user avatar
  • 103
0 votes
1 answer
425 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?
user avatar
0 votes
1 answer
60 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 ...
user avatar
0 votes
0 answers
207 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 ...
nathan111777's user avatar
0 votes
0 answers
240 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 ...
GradoniusTheWise's user avatar

1
2 3 4 5
40