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

Distance based search view to filter on near by location

I have these module installed. geocoder geofield geofield_map addressfield gmap I have a geofield field in my content type which saves the lat long from the address field. I have created a view, ...
-1
votes
0answers
14 views

one view with multiple search filters in a different view?

I have a problem what i want to achieve is that i have one view for my main page and there's a different filters from different views. Example:I have filters in my main view "Search for name" "drop ...
0
votes
0answers
14 views

How to combine two operators in search api full text search?

I have a search api view. I have an exposed filter for full text search. In the filter settings, I am using search keys and in Query settings I have selected multiple terms. I used this settings ...
0
votes
0answers
5 views

Elastic search - Not parsing full stop?

I have used Elastic search connector in my project for Indexing. There is this field named "Body" of "Basic HTML" type. While indexing , In response , Body field is only displaying all texts , ...
0
votes
0answers
12 views

using search api solr views, how could i get a list for all discrete values a field

i have created a view, with nodes indexed on solr. My problem is that the view is about a content type, which has a field which is a node reference to another content type. So how in the filter area, ...
0
votes
1answer
11 views

use a view template that exists for content view search from database, to a solr indexed fields view, so as to have visually the exact same result

In Drupal 7, i have a view named say default-view to display results. I have disabled the default search and enable module 'Search API' and Search API SOLR (used for Backend) to perform search in ...
1
vote
1answer
19 views

Search using view and facet as block

In my project I need facet search as block view that need to be included in content region. So I created View as block and added facet block in header of the view. Also need infinite scroll, so ...
-1
votes
1answer
28 views

How to override the default search block and make a button with Font Awesome?

I want to override the default search block of Drupal and create a button like the image below: However, I do not know how to do it. I have tried using hook_form_alter as well but it is not working: ...
0
votes
0answers
9 views

How can I make search_api_solr and views exposed filters work with facets?

I am trying to implement search for a new client's site and am at a loss about how to complete it. Our Setup ApacheSolr 7.x server using search_api, search_api_solr, facets, facets_pretty_paths. ...
0
votes
0answers
31 views

Sort by date in view with results from Solr Search API

I create release notes section for my website where I fetch a paragraph from the specific content type. I have configured one index with fields such as name or status. In addition to that, I added the ...
0
votes
1answer
22 views

How do I make the exposed filter values available as tokens for text areas

How do I display (or render in twig) the search term, entered in the search field. When you enter a search term and click on the search button, you will go to the search results page (view). In the ...
0
votes
0answers
10 views

Drupal 8 facets search as block in a page

I have created facet search view and embed it as block in one of my page ? But when user type something or apply filter, it will redirect to search page and display result. How can I update result in ...
0
votes
0answers
19 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
13 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
12 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
22 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
35 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
15 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
16 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
23 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
19 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
29 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 ...
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
84 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
48 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
63 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
30 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
19 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
26 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
12 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
122 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
16 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
20 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
45 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
175 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
18 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
23 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
31 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
27 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
18 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
24 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 ...