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
2
votes
1answer
491 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
423 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
0answers
13 views

Filtering by User Reference with JSON API

I try to filter some data by User Reference. My problem is, it return me an empty list "data": [] It only works if the authenticate user own's the data... My request : {{url}}/api/node/...
0
votes
1answer
629 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
0answers
48 views

Limit the number of characters of Node Body(summary) in Search Results

In Drupal 8, I am using 'Search API' template file to display search results. My each page has more than 1000 words content. When I perform a search it display the results correctly, but I see the ...
0
votes
1answer
482 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
396 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
462 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. ...
-1
votes
0answers
10 views

Search API XSS issue

Using the search API documentation, built a form in the header that passes the search text to the search page. https://www.drupal.org/docs/8/modules/search-api/getting-started/common-pitfalls When ...
0
votes
0answers
27 views

Remove duplicated results - Apache Solr

English is not my native language so please be patient. Good afternoon, my Drupal 7 site is currently holding several articles, help topics, and document guides that are versioned, i.e search the &...
-1
votes
1answer
14 views

How to display default drupal search block in twig template

In twig_tweak module before version 2 (for Drupal 8) I could place the following code in my page twig template and it would work: {{ drupal_block('exposedformsearch_contentpage_1') }} This would ...
3
votes
1answer
1k 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
592 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 ...
0
votes
1answer
569 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/...
0
votes
1answer
511 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 ...
-1
votes
1answer
28 views

Search API location distance filter not working

I'm trying to create a search page with Search API Solr, Search API location and a Geolocation field. I've got my view, and my lat/lng fields are correctly indexed. E.g. I've selected these fields for ...
0
votes
0answers
29 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 ...
4
votes
2answers
72 views

Finding nodes that have not been indexed

On a Drupal 8 website I'm administering the ratio of paged indexed by search_cron stays at a value far below 100%. New pages are indexed, but it looks as if updated pages are not indexed again. I ...
4
votes
1answer
1k views

How do I index custom fields with the search API using elasticsearch?

I see all kinds of tutorials to get apache to index content. Is there any difference in getting elasticsearch to index my new custom field? On the field page I can see my field but when i expand it ...
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
1answer
952 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 ...
3
votes
0answers
404 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 use ...
0
votes
0answers
20 views

Global $pager_total_items replacment

I updated a website to Drupal 8.9.6 version. I saw that the global variable $pager_total_items was used, but is deprecated since D8.8.0. So, I'm looking for an alternative to retrieve the total items ...
1
vote
0answers
26 views

Search API custom query processor [closed]

I would like to create a custom query processor to filter Commerce products, based on a user field and a product field. Users have a boolean field "hide special products", and products have ...
2
votes
2answers
2k views

How to boost relevance of Search API solr with creation date?

We have replaced Drupal's core search with SolR but we have noticed a recursiveness issue regarding the search results, for ex. when searching “executive committee”, documents created in 2006 and 2007 ...
0
votes
1answer
526 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 ...
0
votes
0answers
18 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 ...
2
votes
1answer
335 views

Show Taxonomy Terms belonging to search_api search result nodes

Using search_api (and search_api_solr) i have a view that shows nodes for (in this case) Organisations in a search_view. That works very nicely. Now, I would like to show a list of taxonomy terms ...
0
votes
1answer
616 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 ...
3
votes
1answer
588 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 ...
4
votes
3answers
878 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
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 ...
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 ...
2
votes
1answer
733 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
838 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
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....
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
0answers
19 views

How do I generate a search snippet similar to core search for a custom search API page?

I installed solr and search_api and search_api_pages. It's all working as expected but, for now, my new search page need a lot of configuration to display correctly. Unlike drupal core search, which ...
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(...
1
vote
1answer
683 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?
0
votes
1answer
1k views

How to bulk re-index the whole site for core search?

I have a website that has about 100,000 nodes. In the core search page (admin/config/search/settings) it shows that: There are 80801 items left to index. It index 100 (or at most 500) nodes per cron ...
1
vote
1answer
444 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
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 ...
2
votes
3answers
7k views

How to improve search results filtering on taxonomy

I would like to know the best way to filter drupal search results using taxonomy. I want users to be able to search for particular results from a particular taxonomy..this can be done to refine ...
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
1k views

Solr index fields not showing a field

I have a field within a field collection that I need indexed. It's not showing up in the /admin/config/search/search_api/index/solr_node_index/fields page. I tried using this to try to add it myself, ...
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 (...
0
votes
0answers
20 views

How to add “null” value in elastic search field if data is empty?

This might be long , but I am trying to make understand my problem. If a field is having empty data then that field is not coming in elastic search index. I want to print something like empty or null ...
4
votes
3answers
2k 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 ...
1
vote
1answer
360 views

Search API autocomplete group suggestions

I am using Search API, Search API autocomplete and Solr search. I'we made a view with an exposed filer that has a funcionality of search api autocomplete. For now, autocomplete suggestions are just ...

1
2 3 4 5
38