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
0 answers
29 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
25 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
64 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,224
0 votes
0 answers
30 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
63 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,224
0 votes
0 answers
17 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,622
1 vote
1 answer
41 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
  • 477
0 votes
1 answer
56 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
244 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
32 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
106 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,791
1 vote
1 answer
75 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
50 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
24 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,177
0 votes
0 answers
39 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,177
0 votes
0 answers
13 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,177
0 votes
0 answers
123 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
77 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,177
1 vote
1 answer
33 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
302 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,581
1 vote
0 answers
71 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
  • 580
1 vote
0 answers
71 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
101 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
41 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
587 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
0 votes
0 answers
3k views

"Composer\InstalledVersions" not found in Solarium\Client::getVersion()

When i try to open configuration page of search API module i am getting the below error: The website encountered an unexpected error. Please try again later. Error: Class "Composer\...
sudhan's user avatar
  • 11
2 votes
1 answer
84 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,177
1 vote
0 answers
38 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
122 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
81 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
0 votes
0 answers
94 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
54 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
127 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
182 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
79 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
177 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
275 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
342 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
55 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
182 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 ...
kniro's user avatar
  • 11
0 votes
0 answers
189 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
0 votes
1 answer
82 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 ...
GradoniusTheWise's user avatar
0 votes
1 answer
253 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 ...
Delphine's user avatar
0 votes
1 answer
139 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 ...
GradoniusTheWise's user avatar
1 vote
1 answer
60 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 ...
Joost's user avatar
  • 1,218
0 votes
1 answer
84 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 ...
octogone.dev's user avatar
0 votes
1 answer
84 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 ...
octogone.dev's user avatar
0 votes
0 answers
30 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 ...
GradoniusTheWise's user avatar
3 votes
1 answer
919 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 ...
Johannes Freudendahl's user avatar
-3 votes
1 answer
88 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 ...
wilburunion's user avatar

1
2 3 4 5
40