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

Using search api programatically

I have read and tried https://www.drupal.org/docs/8/modules/search-api/developer-documentation/executing-a-search-in-code I am using drupal 8 and using the default content index for testing. I am ...
1
vote
1answer
61 views

Facet Block : only 10 items are shown

Using Search_api, search_api_db and facet_api. Ive created a view display using 'Facet Block'. Ive set the facet field to the one I want to use. The facet configuration of this field has no listing ...
1
vote
1answer
592 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 ...
0
votes
0answers
12 views

Get title of referenced item two levels deep with Search API

I have three content types: A, B and C. A refers to B and B refers to C Now with use of the search api module I search my content types and I want to only output C. But in the result I want to show ...
1
vote
1answer
398 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 ...
1
vote
1answer
392 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
2answers
34 views

Search Nodes by reference field target ID

I have a Node by the Project bundle name. Each Project has a reference field to another entity by the name of Contact, that this contact entity has the Client bundle. I can get the Client target ID ...
2
votes
1answer
393 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 ...
33
votes
3answers
11k views

Search API vs. Apache Solr Search

I have been using the Apache Solr Search module in Drupal 6 and am looking at the Search API for a Drupal 7 install. I have seen some discussion here but I am looking for any reasons for choosing one ...
0
votes
1answer
8 views

Exposed filter or facet for a vocabulary listing select list

I have to create a form with a fulltext search field and a dropdown listing every terms of a certain vocabulary. On submission the form is redirecting the user with the value of both the fields as ...
0
votes
1answer
400 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
389 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
394 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
16 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 ...
1
vote
3answers
990 views

Alter Search Results display

Currently when I search for something it displays the title of the node and if there is a match a small excerpt from either the content short summary or a small excerpt from the paragraph bundle. If ...
0
votes
1answer
417 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
3answers
664 views

taxonomy menu select list with redirect when a menu item is selected

I'd like to have a taxonomy drop-down list like the one in www.1mobile.com. When I select an term, it should go to the respective page, showing products concerning with selected term. I tried Custom ...
0
votes
1answer
336 views

How to drupal autocomplete result link to node page?

In my drupal 7 site I create a custom search form with autocomplete text field which is showing node title.I want this node title link to there node page. For this I write this in my custom module ...
1
vote
1answer
104 views

Taxonomy search block - Search for e.g. “mac” -> Go to URL /tags/mac

I just want a simple "search" block for the tags taxonomy. It should work like I wrote in the title: If you search for the tag "x", it should automatically go to the URL /tags/x. I'm aware that it ...
1
vote
0answers
91 views

I am using a custom module that inputs the user profile image into apache solr index and then I use it on a view but the image doesn't show

I have created the following module and I have managed to input sm_field_main_image into a view. However, the user profile image does not appear. Does anyone know where the mistake is? <?php /** * ...
1
vote
0answers
68 views

Problem with DOT in the search query

If we search something like "..." or anything that has a DOT in front of it, the page will go to forbidden error (url: /search/node/...) If clean urls are disabled, it will work fine.
1
vote
1answer
430 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
451 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
1answer
68 views

How can I edit my search box

I want to customize my search box. I want it to auto complete as I type and not to be case sensitive. What should I do to achieve this?
0
votes
1answer
122 views

Search all content fields with “find content” module instead of title

I want to search all fields instead of the title only. Right now I'm using the "find content" module. Tried to find another one which is similar but am not able to find.
1
vote
0answers
22 views

How to categories “custom search” results.?

I want to categories the custom search module results in 4 tabs. Ex tabs: Products,Downloads, News, FAQ. Can you help on this?
-2
votes
0answers
15 views

Changing Styling of Search API search results page

In Drupal 8, I am trying to customize the Search Result page. I am using 'Search API' not default 'Search' of Drupal 8. I have got the template file from /modules/search_api/templates/search-api-...
1
vote
0answers
30 views

Difference between search_api_solr and apachesolr [duplicate]

I would like to know the difference between these two modules, what are the advantages and disadvantages?
1
vote
1answer
1k views

Where are the facet blocks for search? [closed]

In drupal 8, I have added couple of facets at this page /admin/config/search/facets According to the documentation I should now have some blocks to put on the search page. But I do not see any ...
0
votes
1answer
13 views

Adding Display Suite fields to Search API results

Problem I have some Display Suite token fields, and I want to include these and other entity fields in the Search API search results. I also want to include the Search API Excerpt field in the ...
0
votes
0answers
10 views

Show possible counts for unselected facets

I'm using Search API with FacetAPI and Search Api Database programmatically to good effect. The problem I am finding though, is that if a facet isn't selected, then it won't return any data on the ...
0
votes
1answer
356 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
1answer
29 views

Results page template of Search API module [duplicate]

In Drupal 8, the default Search uses template file 'search-result.html.twig' to display results. I have disabled the default search and enable module 'Search API' and Search API SOLR(used for ...
0
votes
1answer
282 views

Having fatal error when rendering search block in page.html.twig [duplicate]

I'm using Bootstrap theme on Drupal 8. How can I print the default search block form in page.html.twig? Nov 22,17 @9am Update my question for @No Sssweat and @Ramdas Gaikar I have tired this before ...
0
votes
0answers
14 views

Solr issue with multi-domain and multilingual [duplicate]

Requirement: I want to implement domain wise search. In which, when I search from https://abc.multidomain.com, it will return content of https://abc.multidomain.com site only. I have two multidomain ...
0
votes
2answers
2k views

Search result issue with Search API module [closed]

I'm working with Drupal-7; where i have installed so many different modules in it. one of them modules is "Search API". The problem what i'm facing is Result of searched keyword. whenever i use to ...
2
votes
1answer
3k views

Does the Search API module integrate with the standard search?

I have Profile2 installed and want to be able to search on Profile2 fields that I have created. Does the Search API module integrate into the default Drupal search, which would therefore when ...
-2
votes
1answer
44 views

Real time search result from other server

Is this possible to get search result from other server like KOHA/Dspace/Vufind in real time. How do I sync drupal 8 with those servers via OAI-PMH(Open Archives Initiative Protocol for Metadata ...
1
vote
1answer
423 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
611 views

index doesn't update

I'm using Drupal 8's built-in search and it will not update the index. I have cron running every 15 minutes and even tried running it manually but the search status page always says: "0% of the ...
0
votes
0answers
11 views

Ajax loader when facet is selected

When we add a facet block to the page, a filter is selected and the page starts to load the results. However there is no loading icon or indicator the change is being applied. When we check the page,...
0
votes
1answer
39 views

how to remove duplicate in view search API?

I get some duplicate article for the site. How can i remove the duplicate? There is no distinct setting. Here is the setting of view
1
vote
3answers
292 views

How can I override the empty search message?

What do I have to do to override the message Your search yielded no results from core search module inside core/modules/search/src/Controller/SearchController.php?
0
votes
2answers
66 views

Glossary option in Search API indexed nodes

Does anyone know how to add glossary for search index nodes? In Views+Search API you dont get glossary option in contextual filters as you get in Views with content nodes. Currently I am using grouped ...
2
votes
1answer
425 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
1answer
464 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 ...
0
votes
0answers
12 views

Search API index one of many fields as one field

I have a site-wide search page that's powered by Search API and Search API Solr. It returns results straight from an index that contains content from various entity types (files, nodes, taxonomies, ...
1
vote
2answers
118 views

How can I conditionally alter search API relevance score?

I must be missing some core concept of search API somehow, but I am stuck. The goal is to alter search API results depending on a flag, like Give flagged products in search API a higher search score? ...
0
votes
1answer
419 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
444 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? ...