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
vote
1answer
617 views

Search Api Autocomplete doesnt filter by language

We're using Search API Autocomplete with Search API 7.x-1.9 on a site set up with Solr (Websolr) serving nodes in both English and German. I'm looking to be able to filter the results by ...
0
votes
1answer
476 views

How to change operator in schema.xml and configure site for AND search

I am using Solr search with drupal.Its working fine on my site but the problem is i needed the search to be a specific to the searched content. If i searched for "assembly and key",the search result ...
1
vote
0answers
33 views

Fetching breadcrumb in search result list

I am trying to get the breadcrumb, for nodes in search result listing. I came to know that breadcrumb by default fetches the current node context, so I followed the suggestion from here - How do I ...
0
votes
1answer
424 views

How to set up Apache solr search for Book Specific search

I have two books in my website (Drupal 7) and i am using Solr search. I want to implement book specific search so that, if user is searching for Book1 content then it should show results from Book1 ...
0
votes
1answer
443 views

How do I create relevant keyword search?

I created a view and fetched the content from a content type. I created an exposed filter with two fields (title and body) using contextual filters. Search works for exact match keywords, but it doesn'...
1
vote
2answers
439 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 ...
3
votes
1answer
2k views

How to render a facet block?

I've created a facet block according to this example Programatically render a block in a twig template I've created the facet block as follows: $variables['block_output'] = Drupal::service('plugin....
0
votes
1answer
534 views

Programmatically querying via SearchApiAcquiaSearchService

I am working on a site where querying using SearchApiSolrService is successful. However, when I deploy to Acquia Cloud and attempt to access the Acquia Search using the SearchApiAcquiaSearchService I ...
3
votes
2answers
1k views

How do I get comments to be indexed?

I'm not sure if it's actually doing this; I can't see any options for comment fields in the configuration. How can I check? Does it say explicitly somewhere?
0
votes
1answer
602 views

How to delete a file attachment from the apachesolr index

My file attachments are indexed using apachesolr attachments 7.x-1.x-dev. I have a custom module that physically deletes a file using file_delete(), but file still remains in Apachesolr index even ...
2
votes
1answer
492 views

Having issues getting solr search facets to appear on non-search pages

I'm using the solr search integration module with facet api on drupal 7 and I'm having issues getting the facets to show on non-search pages. I've checked the box for non-search pages and added a few ...
0
votes
1answer
487 views

How to change path of taxonomy facet

I am using facet search on my site. The search paths for taxonomy term facets are of the pattern "search/term-name", but I would like them to be of the pattern "search/term-tid". Is this possible? ...
0
votes
1answer
404 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
1answer
635 views

Warning: uasort(): Array was modified by the user comparison function in FacetapiWidget->applySorts()

I'm trying to build my own sorting function implementing hook_facetapi_sort() and sorting the following data by weight. name, weight dog, -2 cat, 1 zebra, -5 dolphin, 3 bee, 5 The code I wrote so ...
0
votes
1answer
485 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. ...
0
votes
1answer
375 views

How do I use hook_search_api_solr_search_results_alter() to alter search results?

I want to alter the results of a Drupal 8.x search_api_solr search using hook_search_api_solr_search_results(): function sbn_search_api_solr_search_results_alter(\Drupal\search_api\Query\...
0
votes
1answer
630 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
319 views

Apache Solr redirecting updating to view JSON [closed]

as title am using Drupal 6, Views 3 (latest dev) and Apache Solr Views. Not having any error messages, but when I add a filter (or any other content) to the view, and click "add" down below, the page ...
0
votes
1answer
58 views

Generate page for each json entry

I'm new to Drupal. I want to customize the search module in order to show results from an external JSON. I was able to insert JSON data in the search page, but now I want to generate a page for each ...
2
votes
0answers
114 views

Search a URL list, return JSON values into a dynamically generated table

I am looking for a Drupal Service or a Module (or a link to a working example) of this arrangement: There's a Search form. Placing and submitting the search will make a REST call for certain values ...
4
votes
3answers
940 views

Building a search View that respects access control

I'm implementing search on a site using taxonomy access control with search api and search api solr. Reading the help page node access section, I see: Needs details on how to build a View that ...
2
votes
1answer
245 views

How do I add custom pages or view pages to search index?

Suppose I have a custom page built in a custom controller. Or similarly, a view page the displays the list of nodes, such as the classic "admin/content" page. I want certain user roles to be able ...
0
votes
1answer
520 views

Can Apache Solr Search allow a user to search 'within' current results?

I'm looking for a way to allow a user to search 'within' current Solr search results (not search api solr results). Is there existing functionality that provides this? If I need to implement a ...
0
votes
0answers
9 views

Search api, postprocess processor: how re-run the query?

The documentation of the search api module says, about postprocess processor: Postprocess query This is probably the rarest phase for processors to use, postprocessing the query after it has run to ...
3
votes
1answer
590 views

No search results display when using core search

I have added Drupal the search module block and it displays the search form. When I type and click on search button, it displays nothing, just a refresh in page only. What do I need to do to get ...
0
votes
1answer
995 views

How do I provide a facet to filter by month?

I am using Apache Solr to index a drupal site, and with facet_api enabled I have a set of useful facets available to me, so that I can filter by tag, author etc. I am using facetapi_select to display ...
0
votes
2answers
1k views

Can I Search an entity reference with search api db?

I am using the search api database backend together with a views (with exposed fulltext search field). I want to show a 'related field' that is related to a content type that is being indexed. When ...
0
votes
0answers
21 views

How do I set the default value for results?

I'm on Drupal 9 and I have an AJAX view with a page display and an exposed filter block and a single filter exposed, "Search: Fulltext search". The Search API module is configured to search ...
0
votes
1answer
527 views

Showing title keyword in autocomplete

I have just installed search auto complete module,its working fine,but the problem is its showing title before every result like: title: Drupal 7.9 Release tile:Understanding Drupal Here Drupal 7.9 ...
2
votes
1answer
754 views

Is it possible to show views exposed filters in the facet current search block?

I have a facet search with Facet API, Search API, and a Solr backend with the Search API Views integration. I am using the Current Search block (part of the Facet API module) to display the currently ...
0
votes
1answer
626 views

Show image on solr search result page

I want to show image in my solr search result page. For that, I have created one field in my content type called media. In db, Images are saving in field_data_field_media table in the form of ...
0
votes
1answer
20 views

How do I create a filter based on the current user's role in a search_api based view?

I would like to filter a search_api based view using the current user's roles as input. I don't see a contextual filter for the current user in my search_api based content view at all. How can I ...
2
votes
1answer
629 views

How to create a views page of discounted products list?

I'am using commerce discount module in commerce kickstart 2.11 And need to create a page with a list of dicounted products using views filter and/or search API. I've tryed without any success. Please ...
0
votes
1answer
1k views

In search result page, pagination is not showing up

I have migrated a site from Drupal 6 to Drupal 7. Search form I have rendered in page.tpl.php like this <?php $block = module_invoke('search','block_view','form'); print render(...
0
votes
0answers
37 views

Drupal 8 purge module to allow SOLR index replication before cache invalidation happens

I am having a Drupal 8 website running over Acquia Infra. I have recently configured Purge module to invalidation cache over Acquia varnish and Cloudflare when cache-tags gets Invalidated. Problem: ...
2
votes
1answer
1k views

How to expose filter for entity reference as dropdown in the Search API view?

In my Search API view, I'd like an Exposed filter > Entity reference to be a select box, not a text field. Details I have a view which I created like: Views > Add new view > Show: default node ...
0
votes
1answer
845 views

How can I check the value of an aggregated field without direct access to Solr?

I'm using Search API Solr on Pantheon (which means I don't have direct access to the Solr backend), and I've set up an aggregated field in the UI. This aggregated field is a Fulltext aggregation of a ...
1
vote
1answer
29 views

Unable to get titles to show up as higher priority in search than content

I have a website I am working on that has a TON of content. The client has noticed that when searching for titles in the site search, it seems to prioritize the body content over the title. So I ...
0
votes
1answer
15 views

How do I set filters to reset automatically on new search?

I have a search and some filters on a drupal 7 site. If I search a term, for example "stuff", and there are 30 results, I can click a checkbox filter (let's call it FilterA) on the side and ...
0
votes
1answer
30 views

Search API Database Search score calculation

I'm trying to understand how the Search API Database Search calculates the score for a search result. I understand Solr uses the Lucene scoring model and there's also command that can be used to ...
0
votes
1answer
351 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 ...
2
votes
1answer
1k views

Show parent items in hierarchical facet display

Taxonomy terms are configured as such: Parent category 1 - Child category 1 - Child category 2 Parent category 2 - Child category 3 - Child category 4 "Empty facet behaviour" is set to "Do not ...
1
vote
1answer
2k views

Search API and Facets API with multilingual taxonomy

I have some taxonomy terms and the settings look like this. All these terms have been translated. After indexing the content with Search API and Facets API, the facets are not shown with translation....
0
votes
0answers
16 views

How to speed up tracking in elastic search?

I have been experiencing extremely slow rebuilds of the search index on our client site which is currently indexing almost 4 lakh nodes, before indexing we need to complete the tracking process. But ...
0
votes
3answers
3k views

How to modify the search index?

There's a search index for the Apache Solr module. However, I don't see any way to change this index. It seems that various fields and items are added to the index without rhyme or reason. If I ...
1
vote
1answer
691 views

How I can include Commerce SKUs in search result?

How I can include Commerce SKUs in search result? I am using “Search API and Search API Solr” modules. Any suggestions?
3
votes
1answer
2k views

Adding indexed field to Search API query in code

I want to add an indexed field to a Search API query in code. My query currently looks like this: $index = search_api_index_load("default_node_index"); $query=new SearchApiQuery($index); $query->...
1
vote
1answer
451 views

How to update the search title and page title depending on facet options

I am using Search Api Views module to list some publications. User can filter them using facets. For example he can look for publications only in Kenya. I want to update the title of my page (view) ...
0
votes
1answer
43 views

How can I programmatically change the parse mode?

We have a view that works with Search API and Solr search. The multiple search terms work with single quotes and with no quotes. I want to make the search terms work with double quotes as well. The ...
1
vote
1answer
1k views

Pagination in search results

I have installed search configuration module to alter pagination on search results. I've set the pager limit in Configuration > Search settings > ADDITIONAL NODE SEARCH CONFIGURATION > RESULTS to 3 (...

1
2 3 4 5
39