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
1answer
309 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
17 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
50 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
32 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
118 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
318 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
492 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
42 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 ...
0
votes
1answer
613 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
357 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
600 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
42 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
582 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
450 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
276 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
400 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
24 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
344 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 $...
0
votes
1answer
38 views

How to change search_api_server options via CLI

I'm using drupalvm to create my local dev environment, and am writing scripts to automate importing an existing site's db and changing other settings so that it's more like our actual server-hosted ...
0
votes
1answer
52 views

Facet API: grouping indexed values into several drop-down facets

I have an indexed field which contains values in such a form: CPU: Intel Core i5 CPU: Intel Core i7 ... Memory: 4 GB Memory: 8 GB ... Video card type: Integrated Video card type: Nvidia ... I would ...
0
votes
1answer
19 views

Path field not available in Search API View

Why is the "Path" field not available in a Search API view? Is there another way to get the path for each row in this type of view?
1
vote
1answer
84 views

Add Last changed date to search results

I'm trying to override the search--results.html.twig file. And it says i can use info_split.date to render the dates. But when I try {% if info_split.date %} {{ info_split.date }} {% endif %} ...
-1
votes
1answer
19 views

Exclude custom content type from search ( tried everything )

so I am here after googling the hell out of this problem. My issue is the following, I am trying to exlucde a content type from showing up in resulsts. I am using an autocomplete module called : ...
-1
votes
2answers
15 views

how to apply language detection for the standard search page result?

I manage an intranet in french and dutch. I do not know how to apply language detection from the result page search/node. I mean I have a result page with both language references and I would like to ...
0
votes
2answers
1k views

Modify default drupal 8 search results

I am using Drupal 8 default search and I don't want to use search api module. Default search is working fine. But I Want to modify it. I want to categorize search result and get count of that category....
0
votes
1answer
673 views

'“entity_test” entity type does not exist' on attempted module uninstall

I'm in the process of replacing D8's core Search module with Search API. When I try uninstalling Search, I get this error: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "...
-1
votes
1answer
2k views

Show total search result count

I'm trying to display the number of total search results on my search results page, using the core search module. I've tried manipulating item-list.html.twig and item-list--search-results.html.twig by ...
-2
votes
1answer
44 views

Real time search result from other server

Is this possible to get search result from other server like KOHA/Dspace/Vufind in real time. How do I sync drupal 8 with those servers via OAI-PMH(Open Archives Initiative Protocol for Metadata ...
2
votes
3answers
1k views

Using search api programatically

I have read and tried https://www.drupal.org/docs/8/modules/search-api/developer-documentation/executing-a-search-in-code I am using drupal 8 and using the default content index for testing. I am ...
-1
votes
1answer
137 views

Configuring Solr/Sarnia Fulltext Search in views

I am pulling in content from a Solr server using the Sarnia module, and displaying it using views. If no keyword is entered into the views fulltext filter all results are displayed, but for some ...
0
votes
1answer
1k views

How to index Drupal Commerce 2 products for the search?

The products in Drupal Commerce 2 could not be found through Drupal's default search form. Modules like Commerce Search are available only for Drupal 7. How can I index product titles or SKUs and ...
1
vote
1answer
207 views

Full phrase search

Now I'm using "Search_api" module and when I input, for example, "test case" - it's output all articles which consists both of this words separately. But I want to make search with exact phrase "test ...
6
votes
3answers
2k views

How To Force Search API To Reindex a Node / an Entity

I'm working on Sear API. My entity has many items and data change by action of the user. I don't want to reindex all items of data. So I want to reindex an entity after user does the action. I found ...
0
votes
0answers
221 views

How do I remove core search index?

I want to remove the core search index. In Drupal 7 I achieved this by adding the following line to the settings.php file. $conf['search_cron_limit'] = '0'; What is the equivalent for Drupal 8?
0
votes
1answer
108 views

How do I programmatically add a new search page to the search page list?

I have been able to successfully create a search plugin for a custom module, which allows users to search for my custom entity by name. After creating this file, I have to enable it by visiting /admin/...
0
votes
1answer
630 views

Allow special characters in the Search Form

I can't search with any special character in the default search block form or in search API. Commonly used word like B&W (black and white) don't seem indexed up well, probably due to some encoding ...
1
vote
0answers
70 views

Add anchor to view exposed filters

I'm working on a site at the moment that has exposed filters for a search view using the Facet API. When a facet is selected it reloads the view with a GET parameter appended like in /recipes?f[0]=...
0
votes
1answer
199 views

Drupal 7 Custom Search Result Page

I am trying to create a custom page that display my resuslts which I receive after I search for a post. I am having no luck, I am a total begginer in drupal 7, I googled and looked around here but I ...
2
votes
2answers
1k views

Search api excerpt are empty in the result

I have installed search api module in drupal 8 and included excerpt in the search result. But excerpt are always empty in the search result. (HTML div element is there but no content inside) I ...
0
votes
1answer
346 views

Elasticsearch-Connector: can't index with Search-API

Im using latest Drupal 8.x with Search-API 8.x-1.5 und Elasticsearch_Connector 8.x-5.0alpha1. I can add a cluster and via Search API I can also connect to the Elasticsearch Server. But when I try to ...
1
vote
0answers
26 views

Search result from two websites

I have two websites with different database in a same server. I want to implement a search function that can search the two databases/websites and show the results in one site. Is it possible to do in ...
0
votes
1answer
14 views

Search results showing nodes which are already under NODE_ACCESS_DENY

In Drupal 7, I have some nodes that are restricted access for anonymous user. I implemented this using hook_node_access where if the user_is_anonymous and if the operation is View, I am giving ...
0
votes
1answer
151 views

What are the differences between Search API/Views and regular Views? [closed]

What are the differences between setting up Search API (with the Search Views module) and creating a particular set of results with Search Views against using Views is the normal manor? The big ...
3
votes
0answers
239 views

How to make title exact match appear first in search API

For example, I have content A with : title = Quick brown fox jumps body = (empty) and then I have many other content with word 'quick', 'brown', 'fox', and 'jumps' all accross the body field. I ...
0
votes
1answer
284 views

Having fatal error when rendering search block in page.html.twig [duplicate]

I'm using Bootstrap theme on Drupal 8. How can I print the default search block form in page.html.twig? Nov 22,17 @9am Update my question for @No Sssweat and @Ramdas Gaikar I have tired this before ...
0
votes
0answers
41 views

Number as letter search and vice versa

I'm looking at creating a private number / license plate application and wondered what the best tools were for the search aspect of it. I would like the search to have the ability to have the letter ...
1
vote
1answer
237 views

Indexing image url in search api drupal 8

How to index the absolute image url instead of image uri in search api drupal 8. Image field formatter renders the image url but there is no option to index the url part.
0
votes
2answers
2k views

How to create a Search API block?

I have a search view based on "Search API", I want to replace the default search block of the drupal core with a block "Search API". 1) How to modify the search block of the heart so that it uses ...