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
27 views

How to index field as single value?

I use Search API, Search API Database and FacetAPIto create custom search. And there are mistakes in facets when it displays field with hyphens. For example, there is a text field "city" with value of ...
1
vote
1answer
84 views

module_invoke to create user search block not working

I've done the following to create two search blocks: $content_search = module_invoke('search', 'block_view', 'content_search'); $user_search = module_invoke('search', 'block_view', 'user_search'); ...
0
votes
0answers
32 views

How to clear search API textfield after each search

I am using Drupal 8 with the Search API module. Everything works as expected but the search terms remains in the search textfield after every search. This makes using the search function a bad user ...
1
vote
1answer
289 views

Not able to alter field value/s using hook_views_pre_render or views api hook functions

I have a search result page created using search api and views. My search result page is based on this tutorial and it seems to work properly,however I need to tweak some field's output value and I ...
2
votes
2answers
793 views

How to create a Search API search box that redirects you to the search page

I am using Drupal 8 and the Search API. I have created a search page using the API and views (basically modified the view that came prebuilt when you install the search API). Everything works as ...
-1
votes
1answer
16 views

What kind of index to create for solr search?

I have got a solr instance up and running locally on my drupal 7 server. I have added the server to the search config on my drupal site and now I'm trying to create the 'index' part of the search ...
0
votes
1answer
80 views

Search_api not searching taxonomy names

I feel like I have tried messing with every setting I can find but I simple cannot make my search_api search view return any results based on taxonomy names. I want to be able to search based on a ...
0
votes
1answer
50 views

Apply multiple Content Type filters to Search Block Form in hook_form_alter()

I'm trying to figure out how to apply multiple content type filters to the search results of the Search Block Form (not the normal search form). I've successfully filtered by current language and ONE ...
0
votes
1answer
208 views

Stemmer processor not working

I have configured Search api module in my Drupal 8 search. This is the first time I am configuring search api. I am using database search and not solr. My problem is stemmer processor is not working ...
0
votes
1answer
39 views

How to change the default search button value in awesome zymphonies free theme?

please have a look at the site, http://35.187.238.51/jrdtml/. This is a prototype site of the library I'm working for. I'm using Drupal 8.4 with Awesome Zymphonies free theme. I would want to change ...
0
votes
1answer
306 views

Search not finding search term from page title

Using the default database search index in drupal 8, when I search for a term from the a page title, sometimes it shows the result and sometimes it shows nothing, even though i enter the exact page ...
0
votes
2answers
493 views

Remove search form from search result page in Drupal 8

What's the best way to remove the search form from the search result page in Drupal 8?
0
votes
1answer
44 views

How to remove “Submitted By” data from google search engines in drupal7?

How can I prevent showing of Submitted by username information on google search result pages. I looked into some of the answers but I am not sure those solutions will remove from google search. I am ...
0
votes
1answer
39 views

Token replacement by its value before indexing in apachesolr

I'm using solr 4-x (apachesolr) for search functionality in my Drupal 7 site. I'm using a token in some long text fields in some nodes of different content types across my site. Lets suppose the token ...
2
votes
1answer
360 views

Implement a reset button per facet

I'm using Search API with Facets and a view to display the results. Everything works as expected but I would like to have a reset button per facet, that could be used as a "Show all" button. For the ...
1
vote
1answer
126 views

Search API: sorting with Scandinavian alphabet

We're using the search API something like this, and returning results in alphabetical order: // Set up $search_api_index = $this->entityTypeManager->getStorage('search_api_index'); $index = $...
1
vote
0answers
99 views

What is “Keyword relevance” in Search setting in Drupal 7

Can anyone please explain me what is the "Keyword relevance" in search setting and what is does.? i followed many websites but i could not understand this.
-1
votes
1answer
244 views

Solr, Merge Facet from two taxonomy type fields

I am trying to create an advanced facet from a solr implementation. A searchable content type (Book) has 2 fields (grade level min) and (grade level max) Grade level is a (Taxonomy Term) Pre-K - 12th....
0
votes
1answer
297 views

How to create relevant keyword search using drupal 7 views

We have created one drupal views and fetching the content from one content type. created exposed filter by two field (title,body) using contextual filter. Search is working fine for exact match ...
0
votes
1answer
245 views

Search API: Custom processor not hitting addFieldValues [closed]

I'm creating a custom module for adding a processor that adds relative entities. Here's my code for getPropertyDefinition. public function getPropertyDefinitions(DatasourceInterface $datasource = ...
0
votes
1answer
108 views

Search facets by title vs node id

I have Search API, Search API Solr and Facets setup in drupal 8. The view settings used as data source for the facet is as below. There are two content types: Language and Role. Both are used as ...
-1
votes
1answer
40 views

What does “apachesolr_access_node_ignore = 1” mean?

What does apachesolr_access_node_ignore => 1 mean? Does it affect the search, when apachesolr_access_node_ignore is set to 1?
0
votes
1answer
36 views

how to show teaser view of my content types in search result page in drupal 7

I have customize my teaser view of my content types. Now i want to show that teaser view in search result page also. How can i do this? If anyone can give me a example with code will great help.
0
votes
1answer
87 views

How can I configure the search engine to search by dates? Drupal 7

I am new using drupal and I am creating a website for renting various items. I need the searcher to give me as a result the available articles between 2 dates, that is, the user searches for items ...
1
vote
1answer
32 views

How do I fetch user profile data in search api entity (node) view?

I've one search api index view of node type. Then each user have profile. So I wanted to fetch profile data of that entity created user. In normal view it can be easily done with relationship. But in ...
3
votes
1answer
2k views

Why can't I connect to my Solr server?

I am attempting to configure Solr search with a drupal web page on a dev server. I have installed the server and the Search_API_Solr modules along with it's dependencies. When I try to connect the ...
1
vote
1answer
239 views

How can I get additional fields from Search API query?

I have Search API DB backend where I will be retrieving thousands of results and I need some fields to get out of there as well, beside search item id, since doing additional query to MySQL with IN ...
-1
votes
1answer
194 views

Compare views.total_rows in twig file [closed]

Original Code: <div class="our-story search-query"> <div class="container"> <h1>Search Results</h1> {% if keysearch %} <p>{{ view.total_rows }} results found ...
0
votes
1answer
198 views

Filter results using taxonomy terms

I have an index for a content type that has a taxonomy field attached. I have a fulltext search up and running using the index, but would like to be able to filter the results additionally using tags....
0
votes
1answer
113 views

Add taxonomy terms to search autocomplete

I have a Drupal 8 website with default search bar in my homepage. I have installed the Search Autocomplete extension to extend its functionality. Everything works great, except it does not suggest ...
1
vote
0answers
37 views

Two data sources seem to break things

I'm currently trying to get a Views search page set up, but am running into a roadblock when using 2 different data sources. My process for creating a working search page, starting after installing ...
-1
votes
1answer
64 views

How to reuse the query on a node page?

I have a Views page which is a search page based on a Search API index containing a few filters. The results are rendered entities. When clicking one of the entities, I wonder if it is possible reuse ...
0
votes
1answer
227 views

Getting Drupal 8 to use an external index?

I have two sites one is maintained by us in drupal 8 and the other is maintained by another company that does the news updates etc for our company. I'm trying to figure out the best way to get a ...
1
vote
0answers
109 views

When to filter search results with facets programmatically

To group search results and display them in different blocks i want to filter them programmatically with facets. I found a Solution, where the view is executed only with a new request object. term ...
0
votes
1answer
31 views

How do I stop the site content from being internally indexed?

I have a Drupal 6 website, which is indexing the content for internal use. I don't use the Search module to search in the nodes, but The Search module is installed and enabled, since it seems to be ...
1
vote
0answers
244 views

Drupal 8 Search API not searching field collections

I have a content type called Basic Page with a few fields (title, description, page body), one of which (page body)is a field collection with a field called 'Section Body'. I created a view called ...
1
vote
1answer
58 views

Facet filter in Views wrongly returns “No results”

I'm running into a strange behavior with Search API and Facets API, and I hope someone can point what I'm doing wrong. I am working in Drupal 7 with Views, Search API, Database Search (search_api_db)...
0
votes
1answer
94 views

Sort commerce view by calculated price

I use commerce, search api and facets. I have a "shop" view with indexed products. It works good and I can filter and sort the view using "search api" facets and "search api" sorts fields. I can sort ...
2
votes
1answer
32 views

Facets rendering on all pages irrespective of value dynamicaaly form contextual filter in views

I m trying to add facets using facets module in drupal 8. i have created listing of all products using views page. on listing page, facets are showing properly as per brand information added from ...
0
votes
1answer
54 views

Disable search form in nav from collapsing

Is there a way I can have my search form in nav bar not collapsed when screen size decreases? I'm using bootstrap on Drupal 7
0
votes
1answer
170 views

Is there a way to change Views base table dynamically?

I have a couple of Search API indexes for different server environments (test, qa, uat, prod) with different configurations. Instead of create 4 views in the admin, I just want to use one, and ...
1
vote
1answer
223 views

Search user by field value using Drupal Search Api

I have a set of users with field_first_name and field_last_name, and i want to create a user search using the search api, to search for users using those fields, but it doesn't seems to be working. ...
1
vote
0answers
50 views

How can I create search with views to serch between 2 fields

I create a plain field for body and a plain field for description. now create view to search between title, body and description. I use "Combine fields filter" but in "Choose fields to combine for ...
0
votes
0answers
29 views

How can I create search for one vocabulary?

I create taxonomy called Cities. And I create vocabulary for this Paris,Lyon and ... . How can I found for example "best day" search in search module for paris vocabulary When I'm in paris vocabulary ...
1
vote
0answers
42 views

Matching filters do not return results

I've created a views page of a search index (Drupal7). On this page are five search facets (using facetapi_multiselect). facet1 is filtering by an entity_reference field facet2 is filtering by the ...
0
votes
0answers
72 views

Views and Facets without Search API

Is there any way to use Facets for a Views' exposed filters without using Search API? This is for Drupal 7.
0
votes
0answers
393 views

Non-empty string as route parameter

I'm creating a search results page using the Search API. I want to set an url like this: /search/{text} How should i set up my route? It must accept any combination of characters, including non-...
2
votes
7answers
756 views

How to remove default 'search' text form search form

I can't seem to figure out how to get rid of the default text "search" on my search form (located here: http://dev.mysourcewise.com/media-center) I can confirm the following works in Chrome's console:...
1
vote
1answer
264 views

How do I get only node IDs from the search results?

I'm using Search API Solr with custom searches in code, but I want to find a way to limit the return results to only the nid to save on bandwidth with our third-party solr server. I've tried $query->...
0
votes
1answer
218 views

Search API Autocomplete does not return any suggestions when input contains ąčęėįšųūž or similar characters

I am using Drupal 7, Solr 4.x, search_api, search_api_autocomplete modules in project. We have a page, which contains fulltext search with autocomplete settings. Problem is - it does not return any ...