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
148 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
38 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
260 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
1answer
87 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, ...
2
votes
3answers
393 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
99 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
34 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
105 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
32 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
36 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
159 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
33 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
160 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
23 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
233 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
153 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
48 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
22 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
153 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
113 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
71 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
65 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
50 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
223 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
437 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
704 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
19 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 ...
0
votes
1answer
442 views

Why is Search API only searching node titles?

I have a Drupal 8 site with a custom content type called "Story". It uses the provided body field with machine name "body". Although I have set up configured Search API, it seems to only search node ...
1
vote
0answers
18 views

Filtering video embed text out of search result text while using Search API

I'm using the Search API module to improve my Drupal 8 site's search functionality, and I'm using the Video Embed Media module for the purposes of embedding YouTube and Vimeo content. I have created a ...
0
votes
1answer
57 views

Search API cannot search taxonomy terms

I have built a search page using Search API, specifically the database version. This search page is a simple view and works exactly how I'd expect it to. However, now I need to update the index so ...
0
votes
1answer
33 views

Published-Draft articles are not searchable

I am using Drupal 8.3.x and Search API 8.x-1.5. I am new to Drupal and Search API. I have a clarification on Search functionality. I have created a article where Title and Body fields are indexed. I ...
0
votes
1answer
32 views

Drupal Search - Not searching for menu items

The default search module inside Drupal works perfect my project but the client wants to search for menu items too. The search module won't find menu items and I can't find a normal description or ...
0
votes
1answer
149 views

How to display the rendered entity of entities flagged with a Search API view?

I created an index view "Search API". I added the flags to the index. How to display the rendered entity of entities flagged with a Search API view? Currently only the title is displayed, I want to ...
0
votes
1answer
415 views

How do I avoid behaviors are invoked after an AJAX call?

I have a search result page, with the first set of data being fetched during the page load, and we add a Load More button. Clicking on this button fires an AJAX call, using the ajax_links_api module. ...
2
votes
1answer
657 views

How do I set up Search API index as cron task?

From what I've read in Search API's settings, it sounds like pages should be indexing when cron is ran. This doesn't seem to be the case, but perhaps my logic is flawed. I help manage a blog/news ...
0
votes
0answers
53 views

How to display flags with search API?

On Drupal 8, I created on my content a personal flag "I like". I installed Search API and I created an index view. I want my content sorted by the number of "likes" received on each node. How to do ...
1
vote
1answer
700 views

index doesn't update

I'm using Drupal 8's built-in search and it will not update the index. I have cron running every 15 minutes and even tried running it manually but the search status page always says: "0% of the ...
0
votes
1answer
416 views

Search API group by issue with views

I have a content type thats is called course which has a field that is a reference to a taxonomy called category. My specification tells to build a search where users can search for the course title,...
1
vote
1answer
814 views

Products containing a hyphen or numbers not shown or wrong relevance

I have an external Apache Solr Server, with Search API and Search API Views. When we search for ordinary products, they are shown correctly, with the correct descending relevance order. When we ...
0
votes
1answer
49 views

how do I display both a term view and parent terms view on the same taxonomy term page

I am using search api views to override core taxonomy term pages. I would like to create a view that displays parent term content as well like a related content block. Or as a view I can use when ...
0
votes
1answer
721 views

Facets hierarchical taxonomy terms not working

I use the Facet module version 8.x-1.x-dev. I have a list of taxonomy terms with parents and childs. The taxonomy term facet is an Entity reference field. I can't get the hierarchical structure ...
1
vote
1answer
582 views

Custom sort with search api

I have created a ViewsSort plugin that works on a normal view (like taxonomy_term) but not on a view based on Search API : it is not present when I click on "Add sort" in BO. This sort is used to ...
0
votes
1answer
361 views

Programmatically set active facets on non search page

I'm using facet api with search api and SOLR. This all works as expected. For non-search pages I use the views facet block and this displays the facets as required. What I want to do though is have ...
0
votes
0answers
461 views

Best bet for elastic search using search api

I am using elastic search with search_api module. I found https://www.drupal.org/project/search_api_best_bets module which seems to work only with solr instance. Is there other way to do best bets ...
0
votes
1answer
28 views

search only on taxonomy and user autocomplete drupal 7

I would search only on user and taxonomy in autocomplete but not search in content. I try many modules : Views Autocomplete Filters Search Autocomplete Custom Search Term Search But none ...
0
votes
0answers
1k views

Search not working for partial word and multiple word

I am using search api and search api page modules to for search functionalities. Search works fine when I search for matching word. For example if I search keyword 'content', it works but when I ...
-1
votes
1answer
427 views

\Drupal\search_api\Entity\Index::load('INDEX_ID'); returns null

I am trying to create a module that executes a search -- I tried to utilize the documentation for calling a search in code but $index = \Drupal\search_api\Entity\Index::load('INDEX_ID'); gives me $...