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
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
17 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
vote
1answer
25 views

Search Results page. Move the search form after the results?

Apparently the only template file to edit is for an individual search result, located at core/modules/search/templates/search-result.html.twig. So you can't move the search form after the results and ...
0
votes
1answer
37 views

How to include media documents in search

Is there any way to include documents I created with the media core module into the search form of the page? I only found the categories "users" and "nodes".
0
votes
1answer
53 views

Remove dots ( … ) from default search results descriptions ( snippet )

I want to remove dots from search results items descriptions to search result page ( Default Search ), i have used Drupal default search for the search result page so how to remove the dots from the ...
0
votes
1answer
42 views

solr is running, but search isn't working: “The Solr server of Solr could not be reached.”

I am using Search API Solr (Version: 7.x-1.14), and search was working fine but has stopped working. I now see "The Solr server of Solr could not be reached" at admin/config/search/search_api. In ...
0
votes
0answers
15 views

How do I show the menu link title?

I'm trying to show the title of a menu-link (see screenshot) in my view based on a Search API content source, but it seems that it wouldn't get indexed. These is what i've done: using drupal 8.8.4 ...
1
vote
1answer
76 views

Change exposed filter date format with Search API

We are using Search API for a customer website and we have a View with a start and end date exposed filter. The view only filters correctly if we use the m/d/Y format, which is not valid in Brazil, ...
0
votes
0answers
17 views

search-index with drush fails on field_collection error

I've been rebuilding my search index using "drush search-index" for the better part of the day. There have been a few odd errors that I have handled as I went along, making some fixes in the process ...
0
votes
0answers
10 views

Refactoring custom module to handle views after migrating off of drupal/media_entity

I administer a drupal 8 (8.6.4) site and am trying to migrate us away from the drupal/media_entity contrib module and into the media support in drupal/core. I have successfully completed the ...
1
vote
1answer
199 views

How can you hide “Your search yielded no results.” when no keywords have been entered on the search page?

On the core default search page located at /search/node, if you visit this URI the page displays "Your search yielded no results." It displays this message whether keywords have been entered that ...
1
vote
0answers
26 views

How to create non-entity(custom) Index in Search API

I'm working on a website that calls another external web service. I want to collect those data somewhere on the D8 website. then based on them I'll provide some REST endpoints for the FE layer. one ...
0
votes
0answers
18 views

search api manipulates phrase

i have a site with search API and views. I configured and created my search. (The site is in hebrew), I noticed that when I search for a 4 letter word - lets say "ward"; I get results with the words :...
0
votes
1answer
52 views

How to get replacement pattern for Search API's fulltext search in global text area header

In Drupal 7, I'm currently using the default core search, and a view for node search results. I have a global text to pull in the replacement pattern for the term that were searched for. I get the ...
0
votes
0answers
11 views

Marking Items on Apache Solr Search page results as downloaded based on user viewing

We have a drupal 7 site that uses Apache Solr search. We have a number of search pages that use Facet API where users can browse our thousands of images and look for ones to download. We want for ...
0
votes
0answers
19 views

How do I create a View to use Bootstrap Paragraph fields and group by the title?

I have a View for FAQ's, and an exposed combined fields filter. I created an FAQ content type, and added a paragraph field that contains "Question" and "Answer" fields. I cant use Search API, and want ...
0
votes
1answer
109 views

“drush sapi-i” command which calls drush_backend_batch_process() fails with “Output is empty”

I am trying to integrate ElasticSearch with Drupal and till now everything seems to be working except that the command drush sapi-i crashes with the output: > 'C:/xampp/htdocs/my-project/docroot/...
0
votes
1answer
34 views

Solr Search Custom search form template

I have solr search setup on my drupal8 website. I have a view setup that has two pages in it. I have the search box via an exposed form placed as a block in my header region. What I want to do is to ...
0
votes
1answer
90 views

Exclude node from search API results based on values in existing fields

My content node includes a verified checkbox that's marked by a human reviewer who then also enters a date. The node is verified only when the box is checked and the date is entered. A content node ...
3
votes
1answer
78 views

Avoid hard crash if user searches when Solr stopped

I use search_api_solr with a server-based Solr installation. Works fine. For reasons I won't explain, the Solr service is stopped sometimes. If a user does a search while Solr is stopped, they crash ...
0
votes
1answer
21 views

Solr search not returning content type

I have a site set up with Solr search. Drupal says 100% of the site is indexed, and the Search appears to work for most content types and their fields. However, the search does not seem to be ...
0
votes
1answer
110 views

Combined Fields filters and missing custom search api fields

Drupal 8 I am using Search API and Views to search several fields from several content and media types. For example, I have a custom "description" field for Media->files so users can add a searchable ...
0
votes
1answer
131 views

How to change the condition operator in the search api query?

I have a date field facet filter on my search api views page. When I select a date in the filter, the search api display those results which has that date value selected in the date field. I want to ...
-3
votes
1answer
31 views

How to display a date facet in a date popup/picker?

I have a date range field in my content type. Is there any way to display a date popup/picker facet on my search page. Any workaround? through facet api, javascript etc? Because I have searched all ...
0
votes
1answer
378 views

How do I use hook_search_api_solr_search_results_alter() to alter search results?

I want to alter the results of a Drupal 8.x search_api_solr search using hook_search_api_solr_search_results(): function sbn_search_api_solr_search_results_alter(\Drupal\search_api\Query\...
0
votes
1answer
93 views

How to query solr server from php in Drupal 8

How do you query solr server from php in Drupal 8? I have installed search_api, search_api_solr and search_api_attachments. Also have Solr v.8.4.0 installed. I installed php SolrClient for Centos 7 ...
5
votes
1answer
204 views

Programmatically executing a node search

Is it possible to programmatically execute a node search? Maybe via NodeSearch or Drupal\search? The closest I could get was to programmatically do stuff such as: \Drupal::service('search.index')-&...
0
votes
2answers
207 views

How to get parent node from a attachment in drupal8 search api results

I have apachesolr index search with Search API attachments. In the results I get a link to the file but I would like to get a link to the parent node. I tried in the view but there is no such field ...
0
votes
0answers
107 views

Database Search API Programmatically error

I am trying to perform a search programmatically with our database search api (no solr or other servers) with the following code: $query = \Drupal\search_api\Entity\Index::load('us_search')->query(...
1
vote
1answer
304 views

Solr search with exact match

I am using drupal 8, search api and solr on our site. In views, I am using full text search with direct query option. Search is working for multiple words. What I want is when I search with double ...
0
votes
1answer
77 views

Excerpt of Search API index is cached

I'm using the search_api extension (V 8.x-1.14) with the Database search (no solr, etc.) I use the search block which is created by the search view (/search path) I want to show the highlighted ...
0
votes
1answer
54 views

Display the URL of where the content is located in my search results

I'm using SOLR search/search API on my Drupal 8 site and I've set the view to display the following two fields: Content datasource: Title (The title & link to the page) Search: Excerpt (...
0
votes
0answers
36 views

Creating search form that will query SQL database and display results on a custom block

I am new to Drupal and have learnt about custom blocks. Basically, I am trying to create a search page where on the left column will have all the filter/search criteria. On the right column the ...
0
votes
1answer
22 views

Search results are not displaying on top by relevancy [closed]

I have to use "Search API" module with configured on solr server and indexed. The search results are displaying but "relevancy" content is not on top of the page. Example #1: Search key word: course ...
0
votes
0answers
106 views

Remove duplicate records from view result with pager

My project is setup in Drupal 7 and i am using search API for display my custom search result. Actually i want to show search result based on two content types content so i have configure the search ...
0
votes
0answers
17 views

Seach Page Split into Form Block & Results Block

I already created a search view like /search it is giving form and results finely but Views UI is disabled in my server . So i want to split this search page into 1) A block which contains a search ...
0
votes
0answers
45 views

Sort Search API results by taxonomy reference field name (and not TID)

I have a views index page that when displaying results without a text search I want to display sorted alphabetically by a taxonomy reference fields name. I can get it to sort by this reference field ...
1
vote
1answer
123 views

How to enable click-sorting for views table display based on Search API index?

I'm trying to create a view with table display based on Search API (database search) index, with column-sorting (column set as Sortable in the display settings). However, this option isn't available ...
0
votes
1answer
23 views

Display a view in search results

I have Search API SOLR running on my Drupal 8 site and I'd like to know if there is a way to have view pages display in my search results. As an example, I have a database content type that allows ...
0
votes
1answer
73 views

Search Solr View with exposed filter fullsearch return no results

I setup a Solr search index (Solr 7.7.1 and Search API Solr 3.2) with custom entities. I have several fields indexed and 2 of them are fulltext. Additionally : I setup the view with an exposed filter ...
0
votes
1answer
22 views

Facet block is not getting display on search page created by view

I am using the Search API module with an Apache SOLR server. On my search page, the search results are rendering properly, but the content type facet block is not getting render in any defined region. ...
0
votes
1answer
68 views

Display the results of a form submit on the same page just under the form

I have created a form and it takes in 3 values which are Brand, Item and Zipcode. The values are queried and the results are fetched the database table. I want the results to be shown in a table ...
3
votes
0answers
120 views

Search Api Solr view cannot retrieve node. ID incorrect?

Drupal Core 8.7.8 Search API 8.x-1.14 Search API Solr 8.x-3.7 Solr 8.1 Solarium 5.1.4 The current Solr config is exported and loaded in Solr. Indexing from Drupal works. The Solr Index View shows ...
1
vote
1answer
45 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
281 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: ...
2
votes
1answer
129 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
136 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
34 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 '...

1
2
3 4 5
38