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

add Solr search box in views filter

I have succesfully installed solr and it is working fine, but my main search in my drupal site is based on views exposed filters, is there a way to add the solr search in views filters, so it ...
0
votes
1answer
364 views

How do I allow facets on my full content display page?

I have installed Kickstart Commerce 2. I have been able to allow facet searches on my collection pages, by simply adding collection/* under the "Show block on specific pages" section of the blocks ...
0
votes
1answer
12 views

How to make a facet search on a taxonomy term contained in a paragraph contained in a content type?

On Drupal 8, I try to make a facet on a taxonomy term contained in a paragraph entity contained in a content type. Is it possible? My stack : Druapl 8.9.0 + Search API 8.x-1.17 + Facets 8.x-1.5 In ...
0
votes
1answer
792 views

searching and entity references

I have two content types documents and authors. When creating a document a selection list of entity reference's to authors is used to select the author. Searches for the author name find the correct ...
1
vote
2answers
355 views

alter Suggestion box for apache solr autosearch

I want to restrict the suggestions for Apache Solr Search with hook_apachesolr_suggestions_alter(&$suggestions, $env_id). I have gone through the code and found the suggestion is prompt from ...
-4
votes
0answers
21 views

Is it possible to add a global search to our website? [closed]

We have many documents uploaded to our website. Is it possible to add a search function to help users find the document they want?
1
vote
0answers
8 views

How to add translation of terms to a search API index?

I have some media in the site default language, it is tagged by terms and the terms are translated. The media is not. How could I add the translated terms to the search index so it's possible to find ...
0
votes
0answers
22 views

How to stop spiders from crawling every combination of multiple drop-down pages

We have a site with around 10,000 pages and media items (mainly PDFs) We use various tools to catalog, check and report on our site and, of course we encourage good spiders (Google et al.). The ...
0
votes
1answer
351 views

How do I rewrite a facet item label using facetAPI bonus?

I am looking at the code example provided by Facet API Bonus module in the section Rewrite facet items via callback function function HOOK_facet_items_alter(&$build, &$settings) { ...
2
votes
1answer
356 views

Change search results pager to mini pager?

How to change search result's pager to mini pager. I want to change default pager to mini pager in that search result page. Please help me. Thank you.
-1
votes
0answers
16 views

Search for a title doesn't give any search results

I'm using the solr search api, and it's actually is working great. Except, I cannot search for the title of the node, if I do, no results will show up (except if the title is also in the body) But the ...
0
votes
1answer
530 views

How do I create a search page?

I have the Search API and the Solr search modules installed. In /admin/config/search/search-api, I see my server and index created and with status set to OK. I can see on the index view page that my ...
1
vote
1answer
419 views

Index custom content in apache solr

I have several custom modules that load and display data from custom tables. I have successfully managed to use the drupal search on these contents, using the drupal search hooks like, ...
0
votes
1answer
425 views

Combine hook_search_execute

I have hook for user_search_execute and node_search_execute for both user and nodes but i want to merge both into mymoduel_search_execute but only node_search_execute uses index not ...
0
votes
1answer
420 views

Allow blank search/list all items with 1.x apache solr module

When a user enters a blank search, by clicking "search" right away, or entering the search result url directly, the initial version of the Apache Solr Search Integration module, 6.x-1.x series, tells ...
1
vote
1answer
532 views

How to change search placeholder?

So far I have tried this code in mytheme.theme: function mytheme_form_search_block_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { $form['keys']['#attributes']...
0
votes
0answers
12 views

unable to search SOLR index for pdf content

I setup SOLR in order to index pdf content. I followed this article: https://www.chapterthree.com/blog/indexing-pdfs-for-solr-search I'm able to index pdf content using SOLR extractor instead of Tika. ...
1
vote
1answer
398 views

Solr multi-select facets occurs bad request error

I faced with a weird problem using apache solr faceting search. While selecting two facet constraints, solr respond with 400 error: "400" Status: null: null HTTP ERROR 400 Problem accessing /...
0
votes
1answer
392 views

File viewer with search filter by category and sub categories Drupal 7

I want to create a site running locally(localhost) which views files that are uploaded by authorized user. Using search filter by category and sub categories, all ebooks that are included in that sub ...
2
votes
1answer
407 views

search block form not accepting special characters in drupal 7

If I search with any special character in drupal default search block form it returns error message like "You must include at least one positive keyword with characters or more.".after i do search ...
0
votes
1answer
17 views

Views + Search API not properly sorting by Commerce Price (seems random)

I have a search index View of product variations. The commerce_price field is indexed and exposed as sort option. However, when sorting by the price it appears mostly in order (Asc or Desc) but some ...
1
vote
2answers
399 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
412 views

Implement boolean search in apache solr search

I am working on Apache solr search. I want to implement boolean search in apache solr search. On google i found following article and many more articles. I have also seen the ...
0
votes
1answer
573 views

Search indexing slow query

Drupal 7.x The search module's indexing maintenance sql query takes a couple of minutes to complete each time cron gets triggered. SELECT t.word AS realword, i.word FROM search_total t LEFT JOIN ...
1
vote
2answers
392 views

Searching entity reference field value with Search API

I am using Seach API, Solr Search modules in my website for searching. I've created an index, say 'Blogs index', I've selected blogs content type to index Fields - title, body, Author are added to ...
0
votes
1answer
441 views

How to filter Search API index view by taxonomy parent

I am using the default database server that comes with search api. I have the Hierarchy Index ticked and I also have the taxonomy field that I want selected. Could someone give me instructions on how ...
-3
votes
0answers
17 views

search api solr : partial keyword number + letter not working

We have Solr version :drupal-4.3-solr-4.x Problem: we have an existing part of a node title: swf6p175 we can search for swf6p175 we can search for swf issue: we can NOT search for swf6: : only ...
1
vote
0answers
26 views

Search API : Elastic Search gives priority to sort instead of title

I am using below modules for Search module: drupal/elasticsearch_connector": "^5.0@alpha" drupal/search_api: "^1.8" I am using AWS Elastic Search. What the issue I am facing ...
1
vote
1answer
1k 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 ...
1
vote
1answer
61 views

How can I programmatically reindex Commerce products to AWS Elastic Search?

I am using Drupal 8 Commerce module. I am using Elastic Search on AWS platform. From the Admin whenever product is saved, those changes are directly applied on Elastic Search server, but when I try ...
0
votes
1answer
15 views

How to combine two filters in search api views?

I have a search index which is indexing both content and files. I have configured the search api views which displays the search results. On this view, I have a filter on type which displays the ...
1
vote
1answer
462 views

Use computed fields as Apache solr facets

Today I wanted to add a computed field to my facet to make a faceted search using that field but when checking the facets page that field wasn't in the allowed field to make facets. When i realized ...
0
votes
1answer
573 views

SearchApiQuery - possible to remove a filter?

The query parameter that is passed to search_api_query_alter has SearchApiQueryFilter member. It contains a protected array of filter elements. I can add to this by calling the createFilter() and ...
0
votes
1answer
514 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,...
0
votes
0answers
30 views

Redirect to suggestion with search api autocomplete

I'm using search api and search api autocomplete. I want that when a user clicks on a suggestion (search api autocomplete), he will be redirected to that suggestion, not the search results. For ...
0
votes
1answer
584 views

An error occured while attempting to process /ajax/ajax_facets/refresh:$.blockUI is not a function

Ajax facets work but I get an error "An error occured while attempting to process /ajax/ajax_facets/refresh:$.blockUI is not a function" when I click on ajax links with checkboxes for the facets for ...
2
votes
1answer
445 views

Apache Solr and Arabic diacrictics

I am using Drupal and I would like to index Arabic text that use Arabic diacritics extensively 'similar to accents in French or Umlauts in German". The text is indexed but the search doesn't ignore ...
0
votes
0answers
16 views

How to use a glossary exposed filter in search api views?

I have a search api views. I want to display a glossary filter on title. I have searched many articles to implement it using a contextual filters. But the options of context filters can be seen in a ...
0
votes
1answer
408 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
25 views

Change sort order for view when exposed filter text field submitted

I have a view that by default is ordered by date. It has several exposed filters one of which is for filtering by text (we use it as a search field). I'd like the view sort to change to Relevance when ...
0
votes
0answers
24 views

Speeding up Search API DB search?

I'm using Search API with it's build in Database search, and while the results are much better than the default Drupal search, the speed is quite slow. I'm seeing 10-15 seconds to get the results page ...
1
vote
1answer
388 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 ...
7
votes
3answers
3k views

How to customize the default search block form template?

How can I customize the default search block form template, I now use below template to display a search form block, but this code doesn't allow me to edit and customize each part of this form ...
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?
1
vote
1answer
560 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
474 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
2answers
19 views

How to order search results based on author field content

I am using Drupal 8 search views, I would like to order the search result so that the content that's author has field "X" filled out should be ordered first and all other content where the ...
0
votes
1answer
533 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 ...
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
480 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? ...

1
2 3 4 5
39