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 to speed up tracking in elastic search?

I have been experiencing extremely slow rebuilds of the search index on our client site which is currently indexing almost 4 lakh nodes, before indexing we need to complete the tracking process. But ...
0
votes
0answers
12 views

How do I set filters to reset automatically on new search?

I have a search and some filters on a drupal 7 site. If I search a term, for example "stuff", and there are 30 results, I can click a checkbox filter (let's call it FilterA) on the side and ...
-1
votes
0answers
9 views

Drupal 7 Implementation of Ajax Facets missing Settings [closed]

i tried installing this module to enable ajax functionality of not refreshing the page while a facet is selected, but the settings doesnt appear to be there when we try selecting multiple ajax select ...
-2
votes
0answers
20 views

Is there any way to sort the search result by name? [closed]

Is there any way to sort the search result by name? Suppose I have one product name as custom engine. When I search in the search bar, only the custom engine product should come. Can I do it through ...
0
votes
0answers
8 views

How do I set a grouped exposed filter of boolean fields in a view?

I have a view with fields used as filters and exposed to user in a dropdown. They are "grouped" in the filter section. These fields are boolean. I can't get them to work together. It's ...
-2
votes
1answer
38 views

0% of the site has been indexed. There are 400 items left to index [duplicate]

Drupal core search doesn't re-index the site and it always shows this message. 0% of the site has been indexed. There are 453 items left to index. What settings do I need to change to make Drupal re-...
0
votes
0answers
19 views

Drupal search, nodes with same title

I do have nodes with the same title however they are designed for different countries -smart ip. So someone is Russia will see Apple is great node id 12 jjdesigned for Russia that is different from ...
0
votes
0answers
19 views

I can't get the summary field of a custom content type to appear in the search result

I've been trying to get my custom content type to have its summary field display in my site search. Other content types like articles will display a summary, but my custom one won't. I've checked the ...
0
votes
0answers
16 views

What is the difference between index all on a node and indexing that takes place after node save for a rendered html node on a solr index?

If a page containing panels is indexed as a rendered item, when indexing all the content of the panels is not included in the index. However if you save the node then the content of the panels is ...
0
votes
1answer
36 views

Apache SOLR index or retrieve the node a file is attached to

I'm building a search engine with Apache SOLR (8.7.0) where PDF files are indexed and searched through, that part is working (with search_api_attachments in case you're wondering). However, the client ...
1
vote
0answers
14 views

Custom field for Search API with multi values

I'm using latest version of SearchAPI (1.18) and SearchAPI Solr (4.1.10). I've a custom field that I want to have multiple values (I use it for faceted search with Facets module). In the previous ...
0
votes
0answers
16 views

How to include a views page (or an URLs rendered HTML) into Search API index?

How can I include a views page into my Solr Search API index? When configuring the index, I can select all kinds of content entities, but views pages are config entities. In my project, I've got one &...
0
votes
1answer
18 views

What causes a search_api based view to stay cached for anonymous users even after the index is updated?

I have a search api based view. The index this view is based on indexes new content as soon as it is published. When new contest is published, logged in users can indeed see the latest content at the ...
0
votes
0answers
10 views

Filter Content and Files using the same Taxonomy term filter in Search API

I have several File (File Entity) and Content (nodes) types both referencing the same Topic taxonomy using the same field (one field, reused). The contents of these files/content are indexed in the ...
0
votes
0answers
29 views

Filtering by User Reference with JSON API

I try to filter some data by User Reference. My problem is, it return me an empty list "data": [] It only works if the authenticate user own's the data... My request : {{url}}/api/node/...
-1
votes
1answer
17 views

How to display default drupal search block in twig template

In twig_tweak module before version 2 (for Drupal 8) I could place the following code in my page twig template and it would work: {{ drupal_block('exposedformsearch_contentpage_1') }} This would ...
0
votes
0answers
78 views

Remove duplicated results - Apache Solr

English is not my native language so please be patient. Good afternoon, my Drupal 7 site is currently holding several articles, help topics, and document guides that are versioned, i.e search the &...
-1
votes
1answer
43 views

Search API location distance filter not working

I'm trying to create a search page with Search API Solr, Search API location and a Geolocation field. I've got my view, and my lat/lng fields are correctly indexed. E.g. I've selected these fields for ...
0
votes
1answer
41 views

How can I programmatically change the parse mode?

We have a view that works with Search API and Solr search. The multiple search terms work with single quotes and with no quotes. I want to make the search terms work with double quotes as well. The ...
1
vote
1answer
32 views

Global $pager_total_items replacment

I updated a website to Drupal 8.9.6 version. I saw that the global variable $pager_total_items was used, but is deprecated since D8.8.0. So, I'm looking for an alternative to retrieve the total items ...
1
vote
0answers
31 views

Search API custom query processor [closed]

I would like to create a custom query processor to filter Commerce products, based on a user field and a product field. Users have a boolean field "hide special products", and products have ...
0
votes
0answers
23 views

Search API Database Search score calculation

I'm trying to understand how the Search API Database Search calculates the score for a search result. I understand Solr uses the Lucene scoring model and there's also command that can be used to ...
0
votes
0answers
20 views

How do I generate a search snippet similar to core search for a custom search API page?

I installed solr and search_api and search_api_pages. It's all working as expected but, for now, my new search page need a lot of configuration to display correctly. Unlike drupal core search, which ...
0
votes
0answers
60 views

How to add “null” value in elastic search field if data is empty?

This might be long , but I am trying to make understand my problem. If a field is having empty data then that field is not coming in elastic search index. I want to print something like empty or null ...
0
votes
0answers
17 views

Search API autocomplete: How to get Node ID in suggestions?

I am using https://www.drupal.org/project/search_api_autocomplete for autocomplete search results is it possible to get Node ID with suggested results? Thanks
0
votes
1answer
50 views

How do I render search block form in theme template?

I've customized the search block in "block--search-form-block.html.twig" and it works using block layout on Drupal 9. Is it possible to render the Search Block directly in page.html.twig? I'...
0
votes
1answer
45 views

Search is broken after updating search_api_solr from 8.x-2.7 to 4.1.4

My Drupal site has a search form, which connects to a Solr index. All of this was working smoothly. But then I updated drupal/search_api_solr from 8.x-2.7 to 4.1.4 (which also required me to update ...
0
votes
0answers
18 views

Why does core Search fail to index the word “HEERF”?

The word HEERF is contained within the body/content of the node, but when I search for the word is is not found. Searching on "Federal" or "Cares" returns the page in the result ...
0
votes
2answers
35 views

How to change the url the core search form submits to?

The action value for the core search form is /search/node. How could I get it to go instead to a different url for a custom View?
0
votes
1answer
28 views

How to make a facet search on a taxonomy term contained in a paragraph contained in a content type?

On Drupal 8, I try to make a facet on a taxonomy term contained in a paragraph entity contained in a content type. Is it possible? My stack : Druapl 8.9.0 + Search API 8.x-1.17 + Facets 8.x-1.5 In ...
1
vote
0answers
9 views

How to add translation of terms to a search API index?

I have some media in the site default language, it is tagged by terms and the terms are translated. The media is not. How could I add the translated terms to the search index so it's possible to find ...
0
votes
0answers
26 views

How to stop spiders from crawling every combination of multiple drop-down pages

We have a site with around 10,000 pages and media items (mainly PDFs) We use various tools to catalog, check and report on our site and, of course we encourage good spiders (Google et al.). The ...
0
votes
0answers
13 views

unable to search SOLR index for pdf content

I setup SOLR in order to index pdf content. I followed this article: https://www.chapterthree.com/blog/indexing-pdfs-for-solr-search I'm able to index pdf content using SOLR extractor instead of Tika. ...
0
votes
1answer
27 views

Views + Search API not properly sorting by Commerce Price (seems random)

I have a search index View of product variations. The commerce_price field is indexed and exposed as sort option. However, when sorting by the price it appears mostly in order (Asc or Desc) but some ...
0
votes
1answer
29 views

How to combine two filters in search api views?

I have a search index which is indexing both content and files. I have configured the search api views which displays the search results. On this view, I have a filter on type which displays the ...
1
vote
1answer
147 views

How can I programmatically reindex Commerce products to AWS Elastic Search?

I am using Drupal 8 Commerce module. I am using Elastic Search on AWS platform. From the Admin whenever product is saved, those changes are directly applied on Elastic Search server, but when I try ...
1
vote
0answers
50 views

Search API : Elastic Search gives priority to sort instead of title

I am using below modules for Search module: drupal/elasticsearch_connector": "^5.0@alpha" drupal/search_api: "^1.8" I am using AWS Elastic Search. What the issue I am facing ...
0
votes
0answers
47 views

Redirect to suggestion with search api autocomplete

I'm using search api and search api autocomplete. I want that when a user clicks on a suggestion (search api autocomplete), he will be redirected to that suggestion, not the search results. For ...
0
votes
0answers
30 views

How to use a glossary exposed filter in search api views?

I have a search api views. I want to display a glossary filter on title. I have searched many articles to implement it using a contextual filters. But the options of context filters can be seen in a ...
0
votes
1answer
33 views

Change sort order for view when exposed filter text field submitted

I have a view that by default is ordered by date. It has several exposed filters one of which is for filtering by text (we use it as a search field). I'd like the view sort to change to Relevance when ...
0
votes
0answers
29 views

Speeding up Search API DB search?

I'm using Search API with it's build in Database search, and while the results are much better than the default Drupal search, the speed is quite slow. I'm seeing 10-15 seconds to get the results page ...
1
vote
2answers
23 views

How to order search results based on author field content

I am using Drupal 8 search views, I would like to order the search result so that the content that's author has field "X" filled out should be ordered first and all other content where the ...
1
vote
0answers
12 views

What is the most common use case for the search_api “Index Hierarchy” processor given it is limited to indexing entity ids?

In search_api the "Index Hierarchy" processor is described as being for the filtering on parent use case: Allows you to index hierarchical fields along with all their parents. Most ...
0
votes
1answer
42 views

How can I allow editors to manage many taxonomies while choosing which terms to boost and which to make visible?

The system I am working on has about 15 taxonomies. It may have 30 or more eventually. We didn't want to add a field for every taxonomy since the editors would have hated that. Initially we went with ...
1
vote
1answer
34 views

Custom redirect to an url with “+”

I use search api module and a view of products. If I put the search text block and I do a search, It redirect to an url like this: <my domain>?search_api_fulltext=word1+word2+word3&sort_by=...
0
votes
0answers
8 views

Create a new indexed field in solr search api

On my drupal site I have to fields from wich I need the minimum in my view. So I thought I could use a search api hook to create the minimum of two fields as index, but I don't know exactly which ...
0
votes
0answers
14 views

How to get content from pages generated by views included in search results

I have a view that assembles all of our job postings. It creates a page whose url is /jobs. Our search backend is Database Search. A search of "jobs" returns no results. Is there a way to get ...
0
votes
1answer
18 views

How to edit Advanced Search Form's Content Type checkbox-list using hook_form_alter

I have a Drupal 7 setup. I want to remove few Content types from the Content Type checklist that appears in Advanced Search form. I could see that advanced search form comes in 'advanced' field-set of ...
0
votes
1answer
18 views

Which is the highest version of Solr that is compatible with the “Apache Solr Search” module?

I have a setup of Drupal 7 with the Apache Solr Search module. I am planning to upgrade the solr server's current installed version(3.6) to a higher version. The latest version of Solr available in ...
0
votes
0answers
13 views

Search API: The “Fulltext search” filter is missing when configuring a view

I'm trying to create a search view, by following these instructions. But I've run into some difficulties. So far, I've done the following: Installed the Search API module Installed the Search API ...

1
2 3 4 5
39