Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Use it for the Drupal core module or any module extending its functionality, or aiming to replace it.

0
votes
0answers
11 views

Fulltext Search in Entity Reference Autocomplete Widget

Given: Node type "Article" with fields: title, entity reference field "Related article" to node "Article". The "Related article" field is shown as an "Autocomplete" in the article form. Search API ...
0
votes
0answers
14 views

Why is my view not displaying Solr index results?

I have a multilingual site and I created a Solr server, created an index (for all content types), added fields, generated the search (it displayed that all my nodes were succcessfully indexed 8/8), ...
-1
votes
0answers
13 views

How do I fix this error with <script>? [closed]

{ "@context":"http://schema.org", "@type":"WebSite", "name":"Site name", "alternateName":"Site alternatime name", "description":"Site description", "keywords":"list of keyword", "...
0
votes
0answers
36 views

How do I add operations?

I'm using Search API module. I have created Content Search Index. By default it's not providing Operations (Edit/Delete). In module.theme file function HOOK_views_data_alter(array &$data) { $...
0
votes
0answers
17 views

How can I alter the result of a view search?

I am building a view block with a full-text search filter and it's working fine. But now I want to get rid of some of the search results when the user searches for some certain keywords, how should I ...
0
votes
0answers
11 views

How to search for exact match [duplicate]

Is it possible to search for an exact match with the Search API module used on a Drupal 7 website? When searching big kangaroo it looks for big and kangaroo but I want to have an exact match. So I ...
0
votes
0answers
7 views

Search Api Result Link to Paragraph instead of full Article

Is it in any way possible to link from a search result to a paragraph where the found word is in, instead of to the full article? So I have an article build up with paragraphs from the paragraph ...
0
votes
1answer
29 views

Drush 7 @self picks configuration from aliases.drushrc.php randomly

I'm trying to index Search API Solr using Drush 7 on platform environments, but the drush search-api-index command is failing for a very strange reason. There are clues of the problem below, but I'm ...
0
votes
0answers
16 views

How do I construct the path for Search view using D8 Core Search, and access it consistently

I've created a search page with the url search/images. I'm creating a custom View for a search page using the D8 core search (site size/traffic volume is such that core Search should be OK). I've ...
0
votes
1answer
31 views

Why are my search results not showing when I input any body text?

Why my search result not showing when I input any body text ? Are search results based on node title only? I am creating a multilingual site with French and English languages. Users should be able ...
0
votes
0answers
28 views

Configuration question:, unable to enter terms into search box

The search_block_form is not working for the administrator role. An administrator cannot input text into the search_block_form box field. However, an administrator user can use the /search node and ...
0
votes
0answers
31 views

Search API Attachments not linked with Search API Content

I am trying to implement the Search API Attachments module on our Drupal 8.5.3 server with a Tika 1.18 instance running in the background. I am using a Solr 7.4.0 server to provide search ...
0
votes
0answers
14 views

How to make default search result language specific? [duplicate]

Am using default search in drupal 8. My site is working with english and and arabic. I want to make search result language specific.How can i do this?
0
votes
0answers
20 views

Which template for search without results

I created a view for the search-api and can customize the results-template with the following hook: views-view-unformatted--my-search--search-results.html.twig However, for searches which yield no ...
0
votes
1answer
25 views

Is there a way to search Drupal's and contrib modules configuration settings?

With so many different modules in use with configuring Drupal it is hard to keep track of which settings are configured where, such as whether some CSS is set by the Code per Node or CSS Injector. It ...
0
votes
0answers
20 views

How to customise the content of the search results page

There are twig templates available for customising the individual results items, and the pagination, however, how can you customise the content on the search results page before the item list. For ...
0
votes
0answers
8 views

how to set a default active facet based on taxonomy term?

Using facets module to work with search api, I am trying to set an active facet based on the taxonomy term from category field present in the content type when a user visits the node/content. Content ...
0
votes
1answer
42 views

How do I create a search page?

I have the Search API and the Solr search modules installed. In /admin/config/search/search-api, I see my server and index created and with status set to OK. I can see on the index view page that my ...
0
votes
1answer
23 views

How to filter Search API index view by taxonomy parent

I am using the default database server that comes with search api. I have the Hierarchy Index ticked and I also have the taxonomy field that I want selected. Could someone give me instructions on how ...
0
votes
1answer
22 views

Rendered Entity not apearing under Show

I created a new index and I've created a view with it but it only has the options to show as Search Results & Fields. Is there something that has to be done when configuring the index to get ...
1
vote
1answer
301 views

How can I override the search result page title dynamically?

In my Drupal 8 site, I am using the default search page. If I enter a key word for search, example:article And all content will be listing under "Search Result". I want to show like "Search result ...
1
vote
0answers
81 views

Display Search API query execution time in search view

I am trying to show the query execution time in a View where I'm using the Search API module to return results from an index in Apache Solr. I am pretty sure that in the past I could print something ...
0
votes
1answer
20 views

Solr search results not available if not logged in

The Solr search results don't show when I'm not logged in. It is quite strange because the search result view's permissions are set as authorized for not logged users, and the content I'm searching ...
1
vote
0answers
35 views

Grouping the results from a view

I have created the view of indexed fields of custom entity products where I have data from various vendors like Amazon, Flipkart, Ebay. For indexing, I have used search_api module (database search). ...
0
votes
0answers
13 views

How to re-index nodes using search API?

On exploring search_api.module file, there mentioned few hooks.Is there any practical demonstration how to use search_api_index_reindex hook? Basically I'm trying to re-index nodes, after executing ...
0
votes
0answers
7 views

Copy Menu Items From Facet Menu to Main Menu

Working on Drupal commerce 2, I want to have product categories in my main menu as submenu items for which I first tried to use taxonomy menus but unfortunately default taxonomy results only works ...
0
votes
1answer
20 views

Nodes not get indexed after running manual cron

I'm experiencing some unexpected behavior of cron. I have used search_api module, that should index all nodes. Automatic cron is set to 1 hour. So after every hour, cron will run automatically. So, ...
0
votes
0answers
27 views

How to create browse by taxonomy term dropdown?

I am trying to recreate in Drupal 8 the search page that somebody created in PHP. I am looking for the way to browse bibliography catalog by the Author name (which is a taxonomy term). Visitor picks ...
0
votes
0answers
12 views

View More Link on Product Teaser on Products Catalog Page

I have created a product catalog using search api and views as per instructions in this link https://docs.drupalcommerce.org/commerce2/developer-guide/catalogs/create-a-catalog I now want to add ...
1
vote
2answers
63 views

How to override default search message?

What do I have to do to override the message Your search yielded no results from core search module inside core/modules/search/src/Controller/SearchController.php?
0
votes
0answers
47 views

Change sort order based on facet selection

My view displays Webinars, I use facets to choose between upcoming and archived. The default sort order is ASC, which is fine for upcoming dates, but if you select the archived facet, I need the sort ...
0
votes
0answers
28 views

Search API result get view containing article, not article it self

I am having difficulties with finding view that contains searched text, not article it self. I have a page congaing 2 blocks of views, and would like to get a link to that page. Currently I get search ...
0
votes
1answer
18 views

How to search for complete SKU like “K-00019” (without splitting it at “-” and without removing leading zeros)

I am using Search API to search commerce products by SKU. But when I enter "K-00019" as search string, every item is retrieved that contains "19". I investigated why this happens and found, that a ...
0
votes
0answers
83 views

Exposed view filter for indexed paragraph fields in SOLR

I'm having trouble getting a filter to work correctly in a Drupal 8 SOLR search view where the filter fields are from indexed paragraph fields Current structure: Node Item title field_periods (...
0
votes
1answer
28 views

Reload js behaviors after click

I'm using boostrap 3 with modals. I've a button that opens a modal, in the modal there are some facet blocks. The view has ajax enabled, so when I click on a facet the page is not reload but are ...
0
votes
0answers
13 views

Show results from one field first in aggregate facet field

I have items with two fields primary color and secondary color. And an aggregate field containing both field. I want to show results from facet of aggregate field such that if item match from primary ...
0
votes
1answer
25 views

Should I use separated servers?

I have to use Solr to improve my customer search engine, on Drupal 7 website. On the development environment, I've set Tomcat and web server on the same machine and it works, but I did not inject ...
0
votes
2answers
25 views

Special characters in form element #title

I am trying to write a custom form for my own search facet. In the form, the labels of the elements are dinamically generated based on the indexed values, and they can contain special Hungarian ...
0
votes
0answers
13 views

Is there a way to utilized a webform select option group in Search API Facets?

To be a bit clearer (and hopefully this makes sense, though my caffeine level is a bit low, so I apologize if it does not make sense): I am using the Webform Module, and I have a select list of ...
0
votes
0answers
44 views

How do I disable a checkbox on Facets Block?

I would like to disable checkboxes of a Facets block. The option will still be visible but the user will not be able to click it. I am using Search API, Search API Solr, Facets. I have created a ...
0
votes
0answers
15 views

How to use Block Name to alter Facet Item List theme suggestions?

I am trying to alter the suggestions for Facet Item List as per the Block created in Block Layout. I am trying to do it by using "my_theme_suggestions_facets_item_list_alter" hook by I am not able to ...
0
votes
0answers
21 views

Show a custom block when a search term is entered

Using Drupal 8 and Solr I'd like to show a custom text block when a user enters a specific search term on the search page. When a user types in a search term, the query is posted in the URL (ex: ...
0
votes
0answers
21 views

Facets module doesn't allow same URL alias for two facets

I am currently using Facets module version '8.x-1.0-alpha11' and I have two facets one for Desktop view and another one for mobile view , both these facets have same URL alias. When I try to upgrade ...
1
vote
1answer
23 views

How to configure my local Drupal site to contact my local Apache Solr server?

I installed Apache Solr server on my local machine and installed the Apache Solr Search module on my Drupal 7 site. When I configure the module and click submit an error message appears: Your site ...
0
votes
0answers
30 views

Search for given range of values

I'm trying to implement a search, where I give a number, and a page which has set a range (min,max) with the number in this range should be found. E.g. the page has the values 10 (min) and 50 (max), ...
0
votes
0answers
7 views

search on users and taxonomy on the same field

This could be stupid but there is a way to search on user or taxonomy terms on the same search field. I try views with global filter it could work for search user have taxonomy by not a simple search. ...
1
vote
1answer
124 views

Get results from content indexed from other site with search api

We are using the Search API module to implement the search pages on the site. Current setup: A custom backend to store the index. It is powered by Lucene. We were able to get a new search API ...
0
votes
0answers
17 views

Index and search results from rest output in search api(solr server) in drupal 8

Is this possible to index records from url in solr server and show in our D8 site search results? (example) //jsonplaceholder.typicode.com/posts(100 items) Each record can be loaded from Url: //...
0
votes
0answers
8 views

Similar/related nodes by title in Search Index view

I have a view/block based on Search index with full search on body/title. I'd like to insert this view as block on a node and display nodes that have similar title. Meaning I would need to pass ...
0
votes
0answers
17 views

Nodes vs Enties : consequences on search requests

I have to store a large amount of content in drupal. I'm wondering if it's better to split it in different entities to increase performances, or to put all in the node tables (so everything will be ...