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

Sort on Published Date field not working within Views for CONTEXTUAL FILTERS Search: More like this Primary tabs View(active tab) using search_api

Sort on Published Date field not working within Views for CONTEXTUAL FILTERS Search: More like this using search_api module Steps to reproduce Index: universe Keys: NULL Conditions: [ status = 1 AND ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
  • 323
0 votes
1 answer
30 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 ...
user avatar
0 votes
0 answers
15 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
  • 323
1 vote
1 answer
25 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 ...
user avatar
  • 892
0 votes
1 answer
33 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
0 votes
0 answers
45 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 ...
user avatar
  • 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 ...
user avatar
  • 323
0 votes
0 answers
26 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)....
user avatar
  • 480
1 vote
1 answer
82 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 ...
user avatar
-3 votes
1 answer
41 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 ...
user avatar
0 votes
0 answers
18 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 ...
user avatar
1 vote
1 answer
54 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 ...
user avatar
  • 117
1 vote
0 answers
12 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 ...
user avatar
  • 133
0 votes
0 answers
11 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 ...
user avatar
  • 161
3 votes
1 answer
159 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 ...
user avatar
0 votes
1 answer
18 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 ...
user avatar
1 vote
1 answer
25 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 ...
user avatar
  • 133
0 votes
1 answer
44 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 ...
user avatar
  • 117
0 votes
0 answers
27 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 ...
user avatar
1 vote
0 answers
18 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 ...
user avatar
  • 137
1 vote
0 answers
37 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 ...
user avatar
  • 2,697
0 votes
1 answer
116 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 ...
user avatar
  • 1,939
0 votes
0 answers
40 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: ...
user avatar
  • 13
0 votes
1 answer
36 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 ...
user avatar
1 vote
0 answers
132 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 &...
user avatar
0 votes
0 answers
23 views

Unable to filter fields in Search API Solr index Query

I'm trying to run a Search API search programmatically on my solr index. The issue is that the query is quite expensive so I'm trying to reduce the cost by filtering for specific fields. In Solr I ...
user avatar
0 votes
1 answer
143 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 ...
user avatar
  • 2,363
0 votes
0 answers
35 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, ...
user avatar
  • 2,697
0 votes
0 answers
70 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 ...
user avatar
  • 103
-3 votes
1 answer
27 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 ...
user avatar
  • 43
-1 votes
1 answer
21 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 ...
user avatar
  • 91
2 votes
0 answers
58 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? ...
user avatar
  • 117
1 vote
0 answers
47 views

How to create a search api facet for filtering user access

I'm trying to figure out how to create a search api facet, that will filter results based on user access. By default, I'm bypassing access check hence showing all the nodes. I need to add a checkbox, ...
user avatar
  • 11
0 votes
1 answer
27 views

SOLR displays "submitted by username" only for the Article content type. How do I stop this?

No matter what I do, I can't seem to remove the Submitted by [username] from popping up in my search results for the Article content type. I'm using the Apache SOLR module. If you visit the article ...
user avatar
0 votes
0 answers
70 views

Search API - Can't get result items

I installed Search API, created Search Index, and it's using the Solr server. When I execute the query and debug the code afterward, I get 3 result counts. And for result items, I get an empty array. ...
user avatar
  • 1
1 vote
0 answers
16 views

Adding a relative date range facet to a Search API view using the "last updated" field

I would like to add a facet to a search_api view filtering on the content "changed" field. I would like to use friendly naming like "This week", "This month" etc. There ...
user avatar
  • 844
2 votes
1 answer
109 views

How can I index arbitrarily related entity data in a Search API index the same as if it were an entity reference?

I have a site with three content types: Collection (references a paragraph that references Articles) Article (references Authors) Author I have listing page displays for each of these content types. ...
user avatar
  • 7,123
1 vote
0 answers
42 views

Display multiple values in separate rows with view that uses Search API

Yesterday I asked this question, but after realizing the issue was specific to my view relying on an indexed field using the Search API module I wanted to make another post getting more specific help. ...
user avatar
4 votes
1 answer
565 views

How can I add a boost to a search_api_solr query if a field has a value?

I'm trying to add a boost to a search api Solr query when a field has a particular value, e.g. when its nid = 123. Looking at Solr version 8.7 docs for boosting (my solr server version), this looks ...
user avatar
  • 7,123
3 votes
1 answer
66 views

How to get all search results of search api index?

I want to get all the search results from the search API index and then perform a custom sort on it and then display them accordingly. I used the hook_search_api_results_alter and also the search ...
user avatar
  • 2,697
2 votes
0 answers
29 views

Shared Facet between Taxonomy and Content Field

My search page needs to show results from both content types and taxonomies. Both the content type and taxonomies that I am searching on have a field called training_location. The training_location ...
user avatar
  • 323
0 votes
1 answer
51 views

How to create a dblog record from a views exposed form submission

I am trying to create a log record of searches made though my Search API View exposed form block in Drupal 9. For some reason on a brand new search I get 2 duplicates (3 total entries), and it seems ...
user avatar
1 vote
1 answer
151 views

I installed Solr for the Search API Solr can someone can give me hints what i could have done wrong?

I'm currently running a CentOS 7 server with cPanel and Drupal 8. I installed Solr 8.8.1 and I can access the administratrion page where I an able to create cores. I installed the Search API module ...
user avatar
  • 11
0 votes
0 answers
39 views

How to index only end dates in the aggregated field in the search api?

I have two date range fields on two different content types. I want to index only the end date of both of the date range fields. I can do it by simply clicking the plus icon on the field and add the ...
user avatar
  • 2,697
1 vote
1 answer
112 views

Redirect Search API view result (Leaflet map) to display in a pane

The particular Search function starts as Full Panel Page in a style to a Google Maps Location Search page; Search Input (Block) to the top left overlaid on a current Leaflet map based on the logged-in ...
user avatar
  • 669
0 votes
1 answer
63 views

Search Api display search term in form

How do I display the search term after I have run the search. Here is my form: <input data-drupal-selector="edit-search-api-fulltext" id="edit-search-api-fulltext" placeholder=&...
user avatar
  • 115
0 votes
1 answer
92 views

How to change Search API index field machine name?

I am using Search API and Search API Solr modules on drupal 7. I have also drupal 8 and drupal 9 sites, and all those sites are indexed on the same solr index. So I need the same machine name for ...
user avatar

1
2 3 4 5
39