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

How can I have facet items set to disabled instead of hidden if no results?

We currently have a Views page with Search API and Elastic Search. There are 3 facets available: Category (radio, single selection) Range (checkbox, multiple select allowed) Type (checkbox, ...
1
vote
0answers
12 views

How to mark related entities as dirty in search api module when edited?

I am using Drupal 7 with the search api. I understand that one of the 'common pitfalls' of the search api is 'Changes in related entities don't lead to re-indexing'. I am bringing in a field called '...
0
votes
0answers
11 views

Advanced forum search view ignores topics first post

Advanced forum module comes with the search view. It searches for a user inputted search term in forum topic content type and returns those topics that contains this term in its comments. The ...
0
votes
1answer
17 views

How to limit the words in search api autocomplete suggestion?

I have a requirement to limit the words to show up in row of autocomplete suggestion. Now its showing titles but problem is titles are too long and suggestions are covering entire width of the screen. ...
0
votes
0answers
16 views

How to alter search api autocomplete to exact match?

I have installed search api autocomplete module. I have configured it also but the requirement is to it should search only 'starts with word'. now the result is searching if a word present in mid of a ...
0
votes
0answers
13 views

Custom Search API sort logic

I have content (multiple content types) which are tagged by a taxonomy that indicates the geographical region they're relevant in. The content is indexed using Search API and Solr. Each user is also ...
0
votes
0answers
15 views

search_api_solr adding boost/weight/importance to a taxonomy value

I have a Taxonomy referenced from entity reference fields on multiple Content Types. It's "version". So what version of the software relates to the content being read. Often, this content is nearly ...
0
votes
0answers
21 views

How index on solr nodes from a content type, that belong to a certain organic group

I am using Search API Solr and Search API modules In order to index a certain content type's fields. I also use organic groups. So I need to index only the nodes that belong to say organic group with ...
0
votes
0answers
18 views

Search API boosting results how to

I followed the guide via this article: https://www.easternstandard.com/blog/2018/05/drupal-8-search-how-get-better-more-intuitive-search-results-using-search-api Search API is searching both content ...
0
votes
0answers
17 views

Search view with group doesn't work well

I think there is a bug with the search in a view: I created a view, which lists some used cars. I use a group filter item. Because cars are in several taxonomies. My problem is when someone uses ...
0
votes
1answer
26 views

Why is my view for Solr indexing is not showing any results?

I have installed solr 8.2.0 for drupal 8.7.6. My Solr server and index are enabled and indexed. But when try to search via views, the results are not showing up. Please help me in solving this. My ...
-1
votes
0answers
12 views

How can I order facets based on creation time?

I am used the Search API and Facet modules in Drupal 8. I can make a title basing on a list of links, but it cannot be sorted basing on the creation time (ascending). There is an option (Facet ...
-4
votes
0answers
29 views

Uninstalling the default search breaks the site

I have a complete site include drupal default search. I'm trying switch to search-api-solr, so when I uninstall the default search. all pages show "not found message". How can I fix that?
0
votes
0answers
13 views

Updating Solr search_api filters on node deletion

With Drupal 7 I am using a SOLR search index. The index covers a particular content type. I have a view which uses the search facets and displays a paged list of items in the index. My problem comes ...
0
votes
1answer
81 views

The site crash when add a server

I'm trying to use Search_api_solr and search-api. I install the required modules and run the solr server and create a core. But when I'm trying to add a server to my drupal 8 site, an error appears ...
0
votes
0answers
10 views

How to filter only one of many content types based on creation date

I'm using search_api_db to index many content types regardless of creation date. My view has a single filter: Search: Fulltext search (exposed). It all works nicely. Now I want to add a creation date ...
0
votes
1answer
46 views

Can I get the relationships of a node using node_load()?

I want to load relationships from the node_load(). So for example getting the article content type and loading the author information with the same query. How would I go about doing this? The end ...
0
votes
1answer
62 views

Get title of referenced item two levels deep with Search API

I have three content types: A, B and C. A refers to B and B refers to C Now with use of the search api module I search my content types and I want to only output C. But in the result I want to show ...
0
votes
1answer
15 views

Exposed filter or facet for a vocabulary listing select list

I have to create a form with a fulltext search field and a dropdown listing every terms of a certain vocabulary. On submission the form is redirecting the user with the value of both the fields as ...
0
votes
0answers
18 views

Limit the number of characters of Node Body(summary) in Search Results

In Drupal 8, I am using 'Search API' template file to display search results. My each page has more than 1000 words content. When I perform a search it display the results correctly, but I see the ...
0
votes
1answer
23 views

Adding Display Suite fields to Search API results

Problem I have some Display Suite token fields, and I want to include these and other entity fields in the Search API search results. I also want to include the Search API Excerpt field in the ...
0
votes
0answers
11 views

Show possible counts for unselected facets

I'm using Search API with FacetAPI and Search Api Database programmatically to good effect. The problem I am finding though, is that if a facet isn't selected, then it won't return any data on the ...
0
votes
1answer
74 views

Results page template of Search API module [duplicate]

In Drupal 8, the default Search uses template file 'search-result.html.twig' to display results. I have disabled the default search and enable module 'Search API' and Search API SOLR(used for ...
0
votes
0answers
14 views

Solr issue with multi-domain and multilingual [duplicate]

Requirement: I want to implement domain wise search. In which, when I search from https://abc.multidomain.com, it will return content of https://abc.multidomain.com site only. I have two multidomain ...
0
votes
0answers
13 views

Ajax loader when facet is selected

When we add a facet block to the page, a filter is selected and the page starts to load the results. However there is no loading icon or indicator the change is being applied. When we check the page,...
0
votes
0answers
12 views

Search API index one of many fields as one field

I have a site-wide search page that's powered by Search API and Search API Solr. It returns results straight from an index that contains content from various entity types (files, nodes, taxonomies, ...
0
votes
0answers
17 views

Custom facet processor not displaying on facet setting

We have a custom module,mymodule, where we create a custom facet processor for a facet we created (myfacet). When we enable the module and cleared the cache we are not seeing the new processor display....
0
votes
0answers
13 views

Invert facet setting for single option on search

What would be a good approach to invert a single facet option? Is this even possible by the system? This is what I have in mind: Let's say we have got a bunch of facet elements to select from on a ...
0
votes
1answer
43 views

how to remove duplicate in view search API?

I get some duplicate article for the site. How can i remove the duplicate? There is no distinct setting. Here is the setting of view
0
votes
0answers
25 views

how to change the keyword for URL search with new search

I have a problem with the search API function. The first time I enter the keyword into the search field which will show the results and the URL like this for example: www.avc.com/avs/search/search-...
0
votes
1answer
13 views

no search_api_solr results when search term ends with number

I have search_api_solr with views (I use as external Solr server https://hostedapachesolr.com. ) There is this strange issue: 1/ When I search for 951, there are correct results 2/ When I search ...
1
vote
2answers
146 views

How can I conditionally alter search API relevance score?

I must be missing some core concept of search API somehow, but I am stuck. The goal is to alter search API results depending on a flag, like Give flagged products in search API a higher search score? ...
0
votes
1answer
19 views

Skip words/vary word order in search for autocomplete suggestions

I'm using an Entity Reference field which searches taxonomy terms of type Person to suggest options for autocompletion. Let's say, i have the following terms (Persons): - Jason Jay Smith - John ...
0
votes
0answers
15 views

Search result page with tabs and ajax pagination

I need to create a results search page with those characteristics: The page will have different tabs (like the bootstrap ones so no page reload), each tab will only shows the relative content type. ...
0
votes
0answers
10 views

Result count mismatch on search api autocomplete

We are using search api module and search api solr as databse server. We created result page using views and it has expose form. And in the expose form, we enable autocomplete. The problem is we ...
0
votes
0answers
21 views

Prefilter facet using URL

We have added facet_categories to our Articles page which is a view page with the path url of /articles. Facet_categories is setup to be the Articles->Category field (which is a taxonomy term). ...
0
votes
0answers
29 views

How to “link” Views exposed filter (fulltext search) with Facet API block (on a specific field)?

Using Drupal 7.67, Search API, Search API Database Search, Views and Facet API. I have built a search engine page with Views and Search API (with a server linked to the Drupal database tables). Two ...
0
votes
0answers
25 views

Drupal facet search exclude filters

i have a situation with Search Facet and some excluded taxonomies from the filters on Drupal 7. Here is my scenario content is tagged with tags - taxonomies on the user profile, there is "Denied tags"...
0
votes
0answers
15 views

Search API with Solr won't display excerpt

I am creating a search results page using Search API with a Solr backend provided by Pantheon. I cannot get the excerpt to appear in the view-based results page. I have turned off all processors for ...
0
votes
1answer
22 views

Issue with taxonomy term search in Views

I have a View that uses "Search Terms" to search nodes of the content type "Products". I added a new taxonomy term field to the Product nodes, and then added that field to the View. When I use the ...
0
votes
1answer
39 views

Searching entity reference field value with Search API

I am using Seach API, Solr Search modules in my website for searching. I've created an index, say 'Blogs index', I've selected blogs content type to index Fields - title, body, Author are added to ...
0
votes
0answers
21 views

Core Search Names with Wildcards

I have a module that creates a custom content entity for staff members and a search page for the entity. The current search module uses an advanced search with fields that can use exact matches, but ...
0
votes
0answers
9 views

Sort views results by context

Background I have a global site search powered by Search API and Solr. This site search returns a mix of multiple content and file types. Some of these content types have a region taxonomy. Content ...
0
votes
1answer
143 views

Drupal 8 & Solr 8.1: No search results, error: “The datasource with ID '' could not be retrieved for index…”

I have Drupal 8.7.1, Solr 8.1. My Solr Server is running and my content is indexed. But I have no results (with a query or without) in my view, and an error: Drupal\search_api\SearchApiException: The ...
1
vote
1answer
47 views

Can I combine multiple “no results behavior” to avoid repetition?

I have a Search API view that has 3 attachments. This is so I can display different content type results with unique layouts. If the user searches something too specific, they'll see the No Results ...
0
votes
0answers
13 views

One pager for a view with multiple attachments

I am making a custom results page for Search API. To achieve this, I have created a View that pulls 4 items and has a pager set. I also have 3 attachment views that display content from a different ...
-2
votes
1answer
38 views

What search tool to use for data living outside of Drupal on the external API? [closed]

I have an external API with Doctors data. Every doctor item will have: Title Location ( geolocation address ) Opening hours Short description Area of expertise Price range On my Drupal 8 website, I ...
0
votes
1answer
19 views

Content Admin Search Tool Drupal 8

As a content admin, are there any feasible ways in Drupal 8 to search the source HTML of certain Text fields across multiple content types. For example, I want to find all nodes that contain <div ...
1
vote
3answers
120 views

How can I provide an autocomplete filter for tags in a Search API view?

I'm working to create a Search API view. I have an exposed filter that's a fulltext search filter. I'd like to expose another filter that works similar to the exposed entity reference, which allows ...
0
votes
1answer
36 views

Facet - default value with search api

I am using content type in Facet. The search result will be having an option to choose the content type to filter the result. I want the search should show the result with particular content-type ...