The Search module is a core module that exposes an API other modules can use to allow searching for data in Drupal.

learn more… | top users | synonyms

0
votes
0answers
11 views

Special Character in Search API Index

I recently created an index for my search but I found a problem that it seems automatically strips out all special characters such as period(.) and ampersand(&). This means that the special ...
0
votes
0answers
4 views

Overriding default search view

I am trying to style and adapt the Search module. When searching for nodes (/search/node) this modules renders (in this order): A search form A <h2> tag The list of results I would like to ...
1
vote
1answer
24 views

Equivalent to template_preprocess_search_results()

Is there something equivalent to template_preprocess_search_results() in Drupal 8? I just realized that this function has been left out in Drupal 8 for some reasons, although ...
0
votes
0answers
30 views

How to reindex a particular node in Drupal 8?

I want to index particular node on update, insert how to do it in Drupal 8? In drupal 7, we use the function function _node_index_node() I want to use the same function in drupal8 for my Drupal 8 ...
-1
votes
0answers
11 views

Add Placeholder for drupal Default search terms in views

i am not able to put placeholder. in views searchterms criteria.below i added screen shot.
0
votes
2answers
18 views

Alter Drupal search URL

I have a third-party vender that provides particular information for us when queried. Basically, we need to change the URL of the search results page so that their supplied javascript can contact ...
0
votes
1answer
18 views

How do I get Search API to index rendered content including referenced nodes?

We are building av website in Drupal 8 where the content is divided into 3 content types; Basic Page, the scaffold for all visual pages like "About, Features etc." Content Block 1, for a layout ...
0
votes
0answers
7 views

Search box using Googles places API to search Leaflet map

I'm setting up a business directory for Bangkok with hotels based on the BizReview theme/installation profile. SETUP Content type In order to store bussiness locations I use a content type with a ...
3
votes
1answer
34 views

How to highlight search results views?

I created a view to replace the search default of my website. So I explained the form in a block. Everything works fine, but I would like to highlight search terms in the results.
0
votes
0answers
6 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? Thanks in advance.
0
votes
0answers
39 views

Drupal 8 - Core search module, change markup

How do i change this markup from my .theme file? Line 119 in \core\modules\search\src\Controller\SearchController.php if (count($results)) { $build['search_results_title'] = array( '#markup' ...
0
votes
0answers
22 views

Search module is not working in blog post

I have a question. I am using drupal 7 right now. In my site, i am using search module. But some content are not shown in the search. For example blog post. I want to search something that i wrote in ...
0
votes
0answers
12 views

How to build a multicriteria search form leading to faceted search

I have seen a Drupal site that looks like this and it has an interesting search form that has several options for each field to search. This form is filled out (and can be expanded or contracted) and ...
0
votes
0answers
12 views

Search API displays

I have added a Server and selected "Database Service" as the Service class then I add an Index and select the server I have created and then I select node and then when I save I have the Server Index ...
1
vote
2answers
113 views

How to replace the search submit button with a Font Awesome character?

I would like to replace the search submit button with a Font Awesome character like the Magnifier (Search Icon) character, and put Search the site inside the search box. How can I achieve this? ...
3
votes
1answer
54 views

How to create a simple form to redirect the user to entered URL?

I want to create a simple form to redirect the visitors to a relative path they enter. I created a search page with views and it has lots of exposed filters. I don't want to use this exposed filter ...
0
votes
1answer
16 views

Restrict search results to only documents user can see

In my application, I have a content type called resource. In the resource content type, I have an entity reference that defines which roles should be able to view that resource. When somebody is ...
0
votes
1answer
15 views

Empty search redirect to Home page

I am using Drupal 7 and my search functionality is not working properly. When I click on search button without enter any keyword it redirects to home page with showing the message Please enter some ...
0
votes
0answers
10 views

Drupal Views Search: Block for selected criteria that allows removal of criteria

Currently using basic search and Views. I'm curious to know if it's possible to have a block that shows above my exposed search criteria that displays each option a user selected in the exposed ...
1
vote
1answer
16 views

Drupal Views Search: Creating an Exposed Filter with Checkbox Options

Using basic search module and Views to make a search interface. When I create an exposed filter for a field with multiple options I only have the option to choose 'dropdown' or 'autocomplete' for ...
1
vote
0answers
23 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 . Please ...
0
votes
1answer
14 views

How to implement facets in Views

I'm trying to implement a search function with location in Drupal. At the moment I have a base setup with a custom Content Type (Discount), which has a Geofield parameter. This gets indexed in Solr ...
0
votes
1answer
18 views

How are the default search results are sorted on D7?

I have a basic search configured on my site. I wanted to know how is the default search results are sorted in drupal, is it by the number of words found on the content or based on date the content is ...
0
votes
1answer
25 views

Create Custom Search and result page

I am trying to create a custom search page with two input fields. Company Name and Certification Code are two fields to be entered by user. I have a content type called certification and the search ...
1
vote
1answer
26 views

Fixing bad node that makes search not index, but completes cron

Upon updating to the latest version of Drupal 7, the following errors presented themselves in the site: Warning: Creating default object from empty value in node_build_content() (line 1398 of ...
1
vote
1answer
20 views

pagination broken on custom theme's search system page [closed]

I do not have pagination on the system search page .../search*. When I toggle off my custom theme I have pagination on the search-result.tpl.php page, I can see the $pager variable. But on my custom ...
0
votes
0answers
5 views

How to create a search block for other nodes that points to an existing search view node?

I have a node that has a view with a search form in it. There is another view under it that displays the results. This is our "search page." Now, we'd like to add a block with a search field with a ...
0
votes
0answers
9 views

Add orderBy parameter to search.extender.inc

I am trying to make a slight modification to the Drupal core search results. Currently, results are sorted by calculated_score (DESC). I would like to add a secondary sort parameter of date created. ...
1
vote
1answer
34 views

Drupal 8 Search Module — Getting more organized data?

I get the impression the module works best for blog-type websites. My website's nodes have many many different (short) text fields with about 30-50 characters worth of text each. It would be ...
0
votes
0answers
13 views

Changing the default selection of a dropdown option in the Search function

I'm new to Drupal and am stuck trying to fix the default option on a dropdown Taxonomy filter on my Custom Search box. See it in the sidebar at artnotapart.com The Year taxonomy is defaulting to 2015 ...
0
votes
0answers
12 views

Search result when user is logged

I have a problem when I make a search with the common search bar, when the user is logged. The result url is http://search/node/%item instead of http://example.com/search/node/%item. I hope someone ...
4
votes
2answers
201 views

How do I prevent website crawling from search engines? [closed]

I have a website which is under development, I need to add actual URL (example.com) for testing CDN. I don't want the search engines to crawl my website using robots.txt. How can I achieve this?
-1
votes
1answer
33 views

Searching content by taxonomy term [closed]

I would like to search content depending on select menu. Something like the search box here: http://www.doyleia.com/anazitisi-ergasias How can I do that with drupal 8?
0
votes
2answers
24 views

Adjust search system - return all nodes, but exclude a specific node type if a field is less than current date

I am hoping to adjust the search system results. It works great, but i have an issue with some of the results. When a user searches "Training" I pull up all node's that have "Training" in their ...
0
votes
1answer
17 views

How to add a join to hook_query_alter

I want to use hook_query_TAG_alter() for search system so I use mymodule_search_query_search_node_alter(QueryAlterableInterface $query). What I want to essentially do is make sure that when a ...
0
votes
0answers
13 views

How does drupal commerce view capture taxonomy url?

I have a strange bug where everything is working fine in production, but when I copy (using drush arb) and reinstall the website somewhere else. it doesn't work. Whenever I try display all products ...
0
votes
0answers
29 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 ...
0
votes
0answers
8 views

Global search results not displaying multiple items in drupal 6

By default the search module only displays only one or two result only when do the global search .But infact there are multiple results . How can i modify the search query or any other workaround such ...
0
votes
0answers
20 views

How to modify the entire block search and the result?

I'm trying to enable the block search with advanced search in a single block ( Adding an extra button on this set ) . But I have not been able to achieve , I think I should use the ...
0
votes
1answer
37 views

You must include at least one positive keyword with 3 characters or more

Drupal 6.20 according to the changelog file. We took over a site from another company who built the site in Drupal, and we'll be converting it over to Wordpress eventually but we need to resolve the ...
1
vote
1answer
21 views

Implementing a search and results page in the admin interface

I'm trying to implement a search and results form in the admin interface but I am having trouble getting the search function and pager working. [1] The pager is not showing at all. I've got this ...
1
vote
0answers
36 views

How can I enable search on parts of a word and Autocomplete suggestions for Drupal 8 Search API?

I'm using search Api in Drupal 8. I tried with search API pages and even views, but I didn't find %like% function query Can I do %like% in search Api or Views?
5
votes
2answers
206 views

How to limit search results based only on OG group membership?

I followed the tutorial about How to Create Custom Search Pages Using Just Views in Drupal 7. I have selected the blocks option instead of page option in views as I want to add it as a block in the ...
0
votes
0answers
19 views

Search API Page - Display Snippet

I've setup Search API (using database service) with the Search API Page module. I set View Mode to Themed as Search Results, but when the page displays I'm getting the full, un-filtered HTML of the ...
1
vote
0answers
16 views

Node access permission but show view teasers and search result teasers

I use Content Access module and Profile 2 module to restrict access to specific nodes and assign a specific role during registration. The problem now is that the search results are not visible? How ...
1
vote
1answer
23 views

Manually post to search results page

I have a section in my theme where I'd like to manually include a search input. I do not want to use the search block as I have some additional customizations I'm integrating outside of the scope of ...
1
vote
1answer
24 views

Restricted nodes don't show up in search results

On this Belgium version of the side users has to have the right permission to view specific nodes. I did this with Content Access module. But now when you as anonymous user search any content the ...
0
votes
0answers
34 views

Apache Solr Not Indexing Entity References

Context: We have a Drupal site that uses the Inline Entity Form module to allow content editors to add sidebar callouts, in-content callouts, and full width content blocks on a given "Page" node. ...
1
vote
0answers
30 views

Search Results are not clickable [closed]

I am using Search module. The search results are not clickable; hence, the users are not able to reach the node/content which they are searching for. How do I fix this? Do I need to change some ...
0
votes
0answers
7 views

Search in Taxonomy description

I'm looking for a way to include taxonomy pages in the site search. For instance if Term Foo has description Bar and someone searches for Bar I want the taxonomy page to be among the results. Whats ...