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
-1
votes
1answer
38 views

Search result - 500 error

My Drupal 7 websites started to throw 500 error when I see the search result page. How to replicate: When I enter any keyword and hit search button then I see this URL "http://www.website.com/search/...
0
votes
1answer
93 views

Why do the facets display the wrong amount of results ?

I have two facets that are bound to the Content Type and the Publish Status of my content. When I do simple keywords search, it works properly, the amount of result corresponds to the real results ...
1
vote
1answer
221 views

how to make a custom exposed filter for SOLR view with hook_views_data_alter [closed]

I need to make a custom exposed filter for a view , and I found an example that does it for nodes, but the filter does not show up for my view which is using SOLR so it has 'content datasource' ...
0
votes
0answers
77 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
1answer
359 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), ...
0
votes
0answers
167 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
11 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
98 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
18 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
47 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
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
1answer
26 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
54 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
227 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
267 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
219 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
612 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 ...
0
votes
0answers
124 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 ...
1
vote
0answers
36 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
156 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
38 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
64 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
19 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
3answers
292 views

How can I override the empty 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
1answer
79 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
34 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
30 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
1answer
84 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
1answer
30 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
35 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
127 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 ...
1
vote
1answer
30 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 ...
1
vote
1answer
151 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
22 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 ...
1
vote
0answers
213 views

How to index to multiple Solr cores with 'Apache Solr search' module?

I'm trying to set up a multisite search across several legacy Drupal 7 sites that use the Apache Solr search module. I'm doing this by using a shared core that all the sites will index to, and a ...
0
votes
1answer
25 views

Including static pages in the search index?

I've got a page set up like this: $items['mypage'] = array( 'title' => 'My Page', 'page callback' => 'mymodule_mypage', 'access callback' => TRUE, ); and then function ...
1
vote
1answer
83 views

Can't declare uniquely named class.. because it's “in use”

I'm trying to figure out how to make a processor for facets in Drupal 8.3. I've got this, but I have a couple issues. The first is a fatal error I get after activating the module, and navigating to a ...
0
votes
0answers
45 views

Your site was unable to contact the Apache Solr server

I have following installations: openjdk version "1.8.0_171" Solr running on port 8983 "solr_home":"/var/solr/data", "version":"6.5.1 cd1f23c63abe03ae650c75ec8ccb37762806cc75 - jimczi - 2017-04-21 ...
0
votes
0answers
21 views

How to alter how sort criteria displays

I have a search field that sorts based on title when the user begins to type. This is fine for the search but I want to display the content type in the dropdown as well. As of now it only displays the ...
0
votes
2answers
108 views

Solr facets returning deleted TIDs

This seems to be a common issue when deleting terms linked to indexed content via term/entity reference, but no solution has worked so far. I am using the following: Drupal 7 Solr 5.5.3 Search API 7....
0
votes
0answers
18 views

Drupal show search time in milliseconds

I have a Drupal 7 site with a large database of more than 500.000 items. I want to do some tests because the current search configuration looks for entire words, when a user write in a textfield to ...
0
votes
1answer
91 views

javascript hack added to every body field - how can I global search and replace?

In the last week it seems that all my drupal sites were hacked. One problem I have is that a javascript was inserted at the beginning of every content body field. Attached is an image. I have ...
0
votes
1answer
62 views

Facets display values instead of labels

I am using the facets module to add filter blocks in my view. I have a list field wich contains FR|France IT|Italy My dropdown list of facet display values (fr, it) I want to display (...
0
votes
1answer
60 views

Solr server URL needs to include a scheme?

Recently I am facing a issue with all my D7 websites which I have migrated to a new server. The case is as follows -> All Sites have been setup with Apache Solr and working fine on my old server ...
1
vote
0answers
42 views

Highlight Taxonomy Term

I'm working in Drupal 8 and am using Search Api for searching my website. I'm using the build in Highlight function and it works great on the title and on the body text. But I can't seem to get it to ...
0
votes
1answer
158 views

Search API view doesn't display placed block

Using Drupal 8.6 here and going mad with this: I installed Search API module that has Database Search and Database Search Default included. I can't install Database Search Default for the following ...
1
vote
1answer
331 views

How to change search placeholder?

So far I have tried this code in mytheme.theme: function mytheme_form_search_block_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { $form['keys']['#attributes']...
1
vote
1answer
571 views

Blank search should show all results

I remember that, in previous versions of the Search API and Search API Solr, by default not entering any search term would return the entire list of items. I have tried with new empty Drupal 8.5.1 ...
1
vote
0answers
18 views

How does the search work differently for Chinese words and English words?

In the search settings page, the search key length is "3" by default. It makes sense for English words. For Chinese words, to get search result, I have to input 4 words like "欢迎光临". Actually, we'd ...