Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
20 views

search api autocomplete to suggest words and not contents

the module search_api_autocomplete makes suggestions of content related to the typed words. I would need to give suggestions on existing words on the db , or words already type in the browser history. ...
Matoeil's user avatar
  • 3,415
0 votes
1 answer
19 views

Change the fields that do the sorting of the view content on exposed field click

I need to sort indexed contents by "modification date" per default. An exposed button "Relevance" would sort by relevance instead. views sort options does not seem to allow that. ...
Matoeil's user avatar
  • 3,415
-3 votes
0 answers
22 views

get the facet taxonomy label from the query using JS

i have set a facet using a taxonomy ref field from an indexed search api view. Using JS: const searchParams = new URLSearchParams(window.location.search); const facetSearch = searchParams.get('f[0]'); ...
Matoeil's user avatar
  • 3,415
-1 votes
0 answers
19 views

sort by relevance in search api index views

When adding an exposed sort by relevance in a search api view index : The select option has only the option "sort by relevance". What is the use of that exposed sort then ? Should there not ...
Matoeil's user avatar
  • 3,415
-1 votes
0 answers
19 views

"Select all/Apply all" option in Facet item for checkbox widget

I am using "Facet-Version: 2.0.7" and "Search API : 8.x-1.34" modules to display the site data using Ajax Filtering in my site. Now I need the functionality "select all/Apply ...
tc karthick's user avatar
0 votes
0 answers
72 views

How to implement a taxonomy/entity reference Search API Processor?

I have two fields (field_contributing_author, field_attorneys more details on the code block below, they are commented there) that I'm interested, one is a taxonomy and the other an entity reference. ...
Alimba's user avatar
  • 117
0 votes
1 answer
26 views

Admin Search Report Data

On the /admin/reports/search report, there are the most searched terms listed. On the installation I'm responsible for since a few weeks, this list is emptied every day. This is one part of the ...
macstens's user avatar
-2 votes
1 answer
236 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
  • 902
0 votes
0 answers
37 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
53 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
161 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
21 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
35 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
81 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
53 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
74 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
32 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
34 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
154 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,278
0 votes
0 answers
35 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
306 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,278
0 votes
0 answers
31 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,652
2 votes
1 answer
122 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
80 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
351 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
36 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
179 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,921
1 vote
1 answer
105 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
1 answer
41 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,227
0 votes
0 answers
190 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
130 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,227
1 vote
1 answer
52 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
523 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,611
1 vote
0 answers
94 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
  • 589
1 vote
0 answers
76 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
143 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.9k
0 votes
0 answers
50 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
777 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
104 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,227
1 vote
0 answers
53 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
141 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
102 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
119 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
60 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
140 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
226 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
88 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
251 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
370 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
  • 123

1
2 3 4 5
40