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
2answers
1k views

How to change placeholder title of search box?

I have placed 2 search box in 'node/92' page at two different region one is at header region and another is at content region ,I have to change the placeholder text of both search box as abc and xyz ...
3
votes
1answer
874 views

How can I display a paragraph field excerpt in a search result view?

I've spent all day and night battling with Search API (with and without Apache Solr) in Drupal 8. Does anyone know if you can use Search API to index paragraph content and then in a search views ...
1
vote
2answers
745 views

Problems with Search API and Entity Translation

I'm building a two-language website (Ukrainian - main, English - second) with the new Entity Translation approach. This approach seems very promising however it does not support multilingual content ...
2
votes
2answers
753 views

Making custom database text fields available for search

I have a custom module that stores text records in a table, however this table records are not mapped to nor an entity neither a node, so as far as I know, I can't expose them to the search module or ...
0
votes
1answer
17 views

Solr search with exact match

I am using drupal 8, search api and solr on our site. In views, I am using full text search with direct query option. Search is working for multiple words. What I want is when I search with double ...
0
votes
0answers
7 views

How to display 'Sort by' filter dropdown in results section?

I have a search page that has filters on the left bar and results on the right. I want to display the 'Sort by' drop down on top of the 'Results' section. I have a custom template for the results ...
0
votes
0answers
5 views

How can I use Tokens [uc_Coupon] with Search API with a custom coupon Server/Index?

I was wanting to create a custom block where an end user can search with a Search Input for an UberCart Store Discount Coupon via the Search API and after some 4 hours research, I'm stumped as to ...
0
votes
0answers
14 views

Expose Drupal 8 Search API / search Pages

I am using the Search API / Search Pages module to perform searches on our D8 site. Does anyone know if there is an extension to the search module to expose the searches via an API or web services? ...
-4
votes
0answers
18 views

Unable to Index and Search Through Attachments from Drupal7 using Solr 4.9

After setting up server and Index (Attchment:File field has been added), I am able to search and Query Body, Description of D7 content except Attachment(Neither its title nor contents inside it) from ...
0
votes
1answer
16 views

Excerpt of Search API index is cached

I'm using the search_api extension (V 8.x-1.14) with the Database search (no solr, etc.) I use the search block which is created by the search view (/search path) I want to show the highlighted ...
0
votes
1answer
344 views

Add custom operator for condition() in search_api

I am trying to implement hook_search_api_multi_query_alter but it seems 'IN' operator does not work here. I have to check condition on array. Any pointers for start building custom operator. function ...
2
votes
1answer
360 views

How to make the commerce_kickstart distribution fully multilingual?

I just downloaded and installed the Commerce Kickstart 7.x-2.0-rc1 distribution. Now I'm in the process of making it fully multilingual. I have no problem with the products. But I don't know how ...
2
votes
1answer
800 views

Group search result by content type

I am using apachesolr on my drupal 6 website for search. Now I wanted to use filter results by content type on search page. At first I was using a panel page as search page. Here I tried to use the ...
2
votes
1answer
334 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
23 views

Display the URL of where the content is located in my search results

I'm using SOLR search/search API on my Drupal 8 site and I've set the view to display the following two fields: Content datasource: Title (The title & link to the page) Search: Excerpt (...
0
votes
1answer
329 views

Search a content type fields based on user inputs

I am using Drupal 7. I need to create a search condition to generate a search result.I have a content type called "properties".It contains around 20 fields like Location,City,Availability,Property ...
0
votes
1answer
364 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
0answers
9 views

Creating search form that will query SQL database and display results on a custom block

I am new to Drupal and have learnt about custom blocks. Basically, I am trying to create a search page where on the left column will have all the filter/search criteria. On the right column the ...
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 ...
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 ...
1
vote
2answers
345 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 ...
1
vote
2answers
389 views

Where does redirect from default search to apachesolr_search occur?

We're using the apachesolr_search module on our site. (This is a site I inherited fully coded, so there's tons going on that I'm not intimately familiar with yet.) We have a search block that has been ...
0
votes
0answers
19 views

Proper integration of Paragraphs in Solr Index

I have a taxonomy entity "Politician" which has a Paragraph field "Party membership", which consists of a Date Range field for the membership and an entity reference to the taxonomy entity for the ...
0
votes
1answer
20 views

Search results are not displaying on top by relevancy [closed]

I have to use "Search API" module with configured on solr server and indexed. The search results are displaying but "relevancy" content is not on top of the page. Example #1: Search key word: course ...
1
vote
1answer
825 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
441 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']...
1
vote
1answer
380 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
0answers
17 views

Seach Page Split into Form Block & Results Block

I already created a search view like /search it is giving form and results finely but Views UI is disabled in my server . So i want to split this search page into 1) A block which contains a search ...
0
votes
0answers
37 views

Remove duplicate records from view result with pager

My project is setup in Drupal 7 and i am using search API for display my custom search result. Actually i want to show search result based on two content types content so i have configure the search ...
0
votes
1answer
406 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
0answers
13 views

Sort Search API results by taxonomy reference field name (and not TID)

I have a views index page that when displaying results without a text search I want to display sorted alphabetically by a taxonomy reference fields name. I can get it to sort by this reference field ...
0
votes
1answer
381 views

How do I add a more/less link in block?

How do I add a more/less link to drop-down and roll up a block? I have a custom search block with a lot of field items and as such, the block is so long. I want to be able to add a more link to drop ...
1
vote
1answer
113 views

How to enable click-sorting for views table display based on Search API index?

I'm trying to create a view with table display based on Search API (database search) index, with column-sorting (column set as Sortable in the display settings). However, this option isn't available ...
1
vote
1answer
415 views

How to hide the (-) sign from facet filter block?

I am displaying faceted blocks and current search block on the search page. When I select a filter from any faceted block, it appears in the current search block and also in that faceted block with ...
0
votes
2answers
347 views

How to display the pager on top and bottom of a custom search results page?

I have used the core Search Page functionality in Drupal 8 to built a search engine on my site. The pager is displayed at the bottom by default. How can i display the pager on the top also? Note: I ...
1
vote
1answer
413 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, ...
1
vote
3answers
185 views

How can I provide an autocomplete filter for tags in a Search API view?

I'm working to create a Search API view. I have an exposed filter that's a fulltext search filter. I'd like to expose another filter that works similar to the exposed entity reference, which allows ...
0
votes
1answer
419 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 ...
2
votes
1answer
399 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
395 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 ...
0
votes
1answer
410 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
390 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 ...
0
votes
1answer
508 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 ...
0
votes
0answers
21 views

How can I write query of search api to get row count for every condition

$query_search_api = search_api_query('search_products', $options); foreach($arrFilterSa as $machine_code => $efield_value) { if($efield_value) { if(...
0
votes
1answer
354 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 ...
0
votes
0answers
54 views

How to display values of certain taxonomy term above the table with the search results list based on content type, related to entering search query?

I made a view which displays a search result list as a table. The searching process works inside one content type using Search API. The system also has to look for between taxonomy terms (name) first ...
1
vote
1answer
463 views

How to sort views by content type when using core Search module

I use a View to show search results (core Search module). In the view I have grouped the grid on the field "Content type". This works fine, each content type is shown under it's own title. But under ...
0
votes
1answer
19 views

Display a view in search results

I have Search API SOLR running on my Drupal 8 site and I'd like to know if there is a way to have view pages display in my search results. As an example, I have a database content type that allows ...
0
votes
1answer
30 views

Search Solr View with exposed filter fullsearch return no results

I setup a Solr search index (Solr 7.7.1 and Search API Solr 3.2) with custom entities. I have several fields indexed and 2 of them are fulltext. Additionally : I setup the view with an exposed filter ...
0
votes
1answer
540 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 ...