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

Questions tagged [search]

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

0
votes
0answers
12 views

How to create a block “Search: More like this” with my articles?

I noticed that in the context filter of the view, there was a filter "Search: More like this". How to make it work? Is this the right solution ? I have a tags field on my articles with taxanomy terms....
1
vote
0answers
33 views

Retain query in search block input

How can I retain the current user's search in the search block input? Please don't suggest a third party module for this unless strictly necessary. I'm also aware of views exposed filter and that's ...
-3
votes
0answers
14 views

Wildcard search not working

We have created a view which is based on the Solr index. We have provided multi-field full text exposed filter to search the terms. We are using Solr 7.4 and Drupal 7.59. We are facing problem ...
0
votes
1answer
29 views

Embedding a view for search and redirection

I have set up a view for searching using Search API. In my specific setup, I need this search to be context sensitive, i.e. I have several pages /foo/search, /bar/search, ... and these return ...
0
votes
0answers
8 views

How to make synonyms.txt and elevate.xml work in tandem in Acquia Solr Search?

I am using Drupal 7 with the Apache Solr module, combining it with Apache Solr Views module running in Acquia. This is a production site, and Apache Solr Search is running without issue. I am trying ...
-3
votes
0answers
24 views

Search module is not working [closed]

In my project, the Search module is not working for Article and Basic page content types, but it is working for other content types that I have used in my project.
-2
votes
0answers
16 views

Search api date popup filter for start and end date [closed]

Is there any module which can provide the date popup filter for the start and end date. I have searched but did not find it. I have checked the Search API ranges but it does not provide the date ...
0
votes
0answers
11 views

Filter content of multiple content types on a single date facet filter

I have three content types. A, B and C. Date field in A is: field_a_date Date field in B is: field_b_date Date field in C is: The default node creation date I want to create a single date filter ...
0
votes
0answers
14 views

Index Form API forms with Solr search

My site uses Apache Solr search and Apache Solr Multisite Search. I need to be able to index some Form API forms created in custom modules so that they return in search results. For instance, when a ...
0
votes
2answers
20 views

Solr search views cache issue

I have views for solr search result and I have highlight processor enabled. There seems to be cache issue effecting search result. Search results are rendered array of entities. For example: If I ...
0
votes
1answer
35 views

Prevent underscores from removing text?

Drupal seems to be removing all text prior to an underscore in my form. This is in the Form.php file of my module implementing Google CSE, so I cannot change the attribute name. if (array_key_exists('...
-1
votes
0answers
29 views

Programmatically create facets?

I am developing a drupal-based CRM. For the reporting system I am using views with facets (using the facet api module). Users can add new fields to the person, case and activity types. But obviously ...
0
votes
0answers
25 views

preprocess views send arguments to facets

I am trying to filter user ip on the template.theme file on Drupal 8 and the intention was to filter on user ip and based on the ip add in the correct arguments into the facets that is created in ...
0
votes
0answers
19 views

Solr search api indexing referenced fields by their id not value

So i created a basic Solr core and index. In the index i added several diff. content types and added a lot of fields from those CT, including a aggregated field (union of several diff. fields: plain ...
0
votes
1answer
29 views

How to send a custom Solr Distance Query with SearchApi

My nodes have a geofield and my search query should find all the nodes within a range. I've managed to create a search form against my Solr Server with views. But I want to do the request by myself (...
0
votes
1answer
33 views

“Header image” content type is appearing in search results

On our Drupal site we have a Header Image content type which we use to upload header/banner images to different nodes and pages. Drupal creates a page for each separate Header Image, and refers to ...
-1
votes
0answers
14 views

How to add Search API Autocomplete to custom form?

I have a custom form provided by my custom module and I want to add search_api_autocomplete functionality to a field of that form. With the help of the documantation Providing search plugins I added ...
1
vote
1answer
52 views

How to add pagination to programmatically rendered search result template

I am trying to implement the pagination in drupal 8 custom page. I have a custom array which I am rendering using theme, I need to add pagination for it. $internal_result = array_merge($...
2
votes
1answer
18 views

How to filter by language in default search

On a D7 (7.60) site, we're currently using the default search tool for a little search form block on the page. Our site has multiple language versions, dependent on url. Right now, content in 4 ...
-1
votes
0answers
30 views

Views result count incorrect with Search API

I'm using Drupal 8 Views in combination with a search index from Search API. When using Global: Result summary in the header or footer of the View, the total number of results shown in the summary is ...
0
votes
1answer
19 views

Cannot add a file with Search API Attachments

I'm using Search API with Solr and Tika under D8 to build a search engine on my website. I could not find any tutorial under D8 for that, so I followed one I've found on D7. However, when I try to ...
0
votes
1answer
12 views

Facet blocks are not appearing, when indexed view block is called programmatically with views_embed_view

I have made an indexed view of my products. In that view, i have a page and a block. If I output the block from drupal/admin/structure/block the block view is shown together with the facet blocks. ...
0
votes
1answer
35 views

Is it possible to do a user search by taxonomy?

my question is because I have users with a taxonomy field and what I want to do is search for those taxonomies. Example: a user in his profile chose a taxonomy, let's say soccer. I want to make a ...
0
votes
0answers
15 views

How to enable the bundle filter callback (data alteration) programmatically?

I want to enable the bundle filter in the search api through code. Is it possible using a hook? or it can be code through a custom query? I checked this hook ...
1
vote
0answers
17 views

How to link from a group of fields in a View?

I am using the Search API module in Drupal 8.6.3 and I have a page of search results displayed using Views. Each search result row consists of a number of fields. I would like to link each whole ...
0
votes
1answer
80 views

FACETS : Add “Apply” button that will apply all filters in one query

Is it possible in D8 to add an "Apply" button that will apply all facet filters in one query and not having an ajax reload on each option changed ? i find this for D7 : https://www.drupal.org/...
1
vote
0answers
27 views

How to use wildcard search in apache solr search module?

I am working on apachesolr search module. I want to implement wildcard search I have used hook_apachesolr_query_prepare() function to modify apachesolr query but it is not working can any one give ...
0
votes
1answer
13 views

Config changes only propagated via manual form submit

My question is related to the Search API Drupal 8 module. I am modifying my configuration via config file updates. After I am installing my custom module, I can see my config reflected in the search ...
1
vote
0answers
17 views

Add granularity year expose filter to a Search API indexed result

I have a search API views that I'd like to add an exposed Date filter so people can have a dropdown with only Year in it is it possible to achieve that? what field should I index? (Post Created) and ...
0
votes
0answers
34 views

When Using Views Group By - Programmatically move a grouping to the end

I've got a Apache Solr Views display where I'm using "Group By" to group the results by a particular taxonomy term. I'm then sorting the results so the taxonomy terms appear in ascending (...
0
votes
1answer
38 views

Does Search API index custom fields?

I am using search API on my website (Version 1.8), I have a problem with indexing custom fields. In the Configuration -> Search and metadata -> Search API I have added the custom fields to be indexed, ...
0
votes
0answers
130 views

Result of search not displaying

I have a module that automatically creates a view (via YAML) that displays indexed content, supposed to be searched by the users (Filter Criteria : Fulltext). When installing the module, the view is ...
0
votes
0answers
25 views

How to index multiple values with Search API?

I am using Search API for my website. The content entity has a field "Creator" of "Entity reference" type and may contain unlimited values. In the configuration tab I have performed all necessary ...
2
votes
2answers
60 views

Is there a way to add non indexed fields to a search api view?

I’m wondering if it’s possible to add non-indexed fields to a search API indexed view? I want the standard flags fields to be available on the indexed search view. And I was thinking I could do this ...
0
votes
1answer
42 views

Search is not throwing any result

It is Drupal 7. This is kind of strange behaviour of the website. This is my website http://www.protecdental.com. If you visit this website, you will see the right-hand top search field. Please see ...
0
votes
0answers
22 views

Exclude in result search node Content Type and Language

I'm use this module Search Exclude I want exclude content type and filter to by languague. Search Exclude (Node) I use this module because is practice, simple and easy compared others module of the ...
0
votes
1answer
41 views

Search API for searching in existing Solr Core

I'm using Drupal 8 with Search API and Search API Solr Search. I'm tasked with making an existing Solr installation searchable within Drupal. This core indexes PDFs and serves other systems, thus I ...
-2
votes
1answer
30 views

Core search is not searching content in the node which is fetched through an entity reference field

Core search in Drupal 7 not searching the content in the node which has been fetched through an entity reference field. What could be the solution to search for a keyword in all pages of the website? ...
-1
votes
1answer
28 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
32 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
113 views

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

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

Apache solr search suggestion result return empty

I am working on drupal 7 in this we have installed apche solr and apche solr autocomplete suggestion module. In my site node titles data are websites name (like amzen.com, google.com, qtern-hcp.com"). ...
0
votes
0answers
14 views

Site re-indexing not happening

I am working on a Drupal 6 site. Facing an issue: Site Re-Indexing not working. Even if after running the cron successfully. I have already gone through google search and Drupal forums. Can ...
0
votes
0answers
23 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
74 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
69 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
38 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
65 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 ...