Questions tagged [search]
Use it for the Drupal core module or any module extending its functionality, or aiming to replace it.
1,969 questions
0
votes
0
answers
12
views
How do I relate an indexed piece of content to dynamic data related to that content in a view that lists indexed node data?
Setup:
I have indexed node content with a few fields from the content, using search_api, in the database
I have setup a view that lists that indexed content with a fulltext search filter, and some ...
0
votes
0
answers
24
views
Search API Facets and multiple types
I've multiple entity types, node of different types, media and commerce products, is there a way to set up a facet to work with search results from across these different entities? So the facet fitler ...
0
votes
1
answer
47
views
Search API Module with Solr: File schema_extra_types.xml could not be fetched from Solr server for validation
I have configured the Search API Drupal module with the Apache Solr search server. Locally I am using DDEV, with the DDEV extension and there everything does work.
I do have a VServer for testing ...
1
vote
1
answer
18
views
Search api autocomplete suggestion punctuation removal
I am using Search-api-autocomplete module for search suggestion. I am looking to remove punctuation from the suffix of search suggestion( The list of suggestions, for example, "word,", I ...
0
votes
0
answers
17
views
How to show child term on click of parent term in facet?
I am using facets and I need one facet with Parent term taxonomy and when clicking on one parent term, another facet to appear with the children of the clicked parent taxonomy term.
Show child terms ...
1
vote
0
answers
43
views
Not getting search results if Views: Exposed Filter search text has html entities
Summary:
Installed Fresh Drupal 10.2.4
No other custom codes or contrib modules.
Added two contents for "Article" content type.
Created a view with page.
Format: Fields
Fields: Title and ...
1
vote
0
answers
114
views
How to address aggressive bots scraping product search page
I'm using the Search API module and Solr to power my product listing page, which includes a faceted search with a relatively large number of filters. However, aggressive bot traffic has caused my site ...
0
votes
0
answers
41
views
Facets refresh issues when used with View of search indexes
I have a view of Search indexes with context filters in my Drupal (9.4) site. I am using Facets (2.0.7)
I have printed facet blocks in the View template files as below
<div class="accordion ...
0
votes
0
answers
11
views
How can files referenced in old node body revisions be excluded from Search API (SAPI) index?
My nodes have (links to) files inserted in the body text (using CKEditor).
There are multiple revisions of these nodes with changes to those files/links as well, sometimes files were removed, ...
-2
votes
1
answer
103
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 of the indexed db , or words already type in the browser ...
0
votes
1
answer
25
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.
...
0
votes
0
answers
158
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. ...
0
votes
1
answer
42
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 ...
-2
votes
1
answer
443
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 ...
0
votes
0
answers
74
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&...
0
votes
0
answers
26
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 ...
0
votes
0
answers
78
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 ...
1
vote
2
answers
477
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. ...
0
votes
1
answer
48
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 ...
0
votes
1
answer
47
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 ...
0
votes
1
answer
212
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 ...
1
vote
0
answers
108
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 ...
0
votes
0
answers
210
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 ...
1
vote
0
answers
40
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 ...
0
votes
2
answers
329
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. ...
0
votes
0
answers
40
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 ...
1
vote
0
answers
547
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 ...
2
votes
1
answer
221
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 ...
0
votes
1
answer
107
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 ...
2
votes
1
answer
470
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 ...
0
votes
0
answers
45
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 ...
1
vote
0
answers
314
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 ...
1
vote
1
answer
164
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,...
0
votes
1
answer
71
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 ...
0
votes
0
answers
275
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 ...
0
votes
1
answer
214
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 ...
1
vote
1
answer
68
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 ...
2
votes
2
answers
761
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 ...
1
vote
0
answers
115
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 ...
1
vote
0
answers
85
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 ...
0
votes
1
answer
260
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 ...
0
votes
0
answers
74
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 = ...
0
votes
1
answer
1k
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():...
2
votes
1
answer
115
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 ...
1
vote
0
answers
69
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
232
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
136
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 ...
1
vote
0
answers
178
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
vote
0
answers
168
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
273
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 ...