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

1
vote
1answer
17 views

Need to add filter with more than one word in view filter criteria Drupal7

I need to add one filter that can take more than one word for searching. Right now i selected "contains" option in Operator for filter criteria. ie i need search string like this: title=word1 or ...
1
vote
1answer
13 views

Google CSE search box display

I am not certain how this happened, but when I add the Google CSE module into my site, this is what search box ends up looking like
1
vote
1answer
13 views

facets do not display on my search page

I've setup apache solr and the facet api for my drupal 6 site, however I can't seem to get my facets to show up on my search page. The only time they show up is when I enable 'show enabled facet ...
2
votes
2answers
27 views

nodes in views and views in search results

I'm building a website, where I don't want to display nodes directly. All nodes are presented using Views. The idea is that i've got 10 basic pages without content. On each of these page I've got one ...
1
vote
0answers
12 views

How do I enable Backlinks View and What Links Here in Drupal 7 Commerce?

We used the backlinks view in D6, as well as the 'What Links Here' tab for each node. We're now using Commerce Kickstart 2. I don't see that View and it appears that the search_node_links table is ...
0
votes
0answers
16 views

Why do my search page and feed items page dates not match?

Feeds mapping overrides the node creation date with the creation date of the RSS feed item. When using <?php print date($node->created); ?> in node.tpl the date shows up fine. But when using ...
0
votes
1answer
14 views

How can I place $content in search results instead of $snippet?

I'm using the Link module to display a field that links to an external site. $snippet places this link (along with other fields) in a paragraph. The fields have no separation and the link doesn't ...
0
votes
2answers
18 views

Suggestions for adding Advanced Search features to a block (using the dashboard)?

Is it possible to do the following: Add a Search box to a block through the dashboard? Have an Advanced Search on multiple fields in that block? Have the results of the search open in a new page? ...
0
votes
1answer
14 views

How to display search block in a modal dialog

What I would like to accomplish is to display the search block in a modal dialog when the user clicks on a search button that I have created. I have created a search button block (basically an image ...
0
votes
0answers
7 views

Search Results Templates Strange Cacheing Behaviour

I've been trying to resolve an issue with my search results templates. There are two scenarios that I could really use some help with understanding: I have no search result templates inside my ...
0
votes
1answer
17 views

Search API ItemType missing Node

I am using Search API and search views to add facet blocks into my views page. It works perfect on my test site with only search/facet/views related modules. But on my working site, when I add ...
0
votes
1answer
34 views

How can I format the date like this in search-result.tpl?

In node.tpl I have <div class="imported-text"> Created on <?php print date('l', $node->created); ?>, the <?php print date('jS', $node->created); ?> of <?php print date('F ...
0
votes
1answer
38 views

Search using external sites Google Search

I am creating a Drupal site for a government agency, and we use Google Search for our websites. The problem I'm running into is the domain the site I'm creating is on is foo.com, and the search is ...
0
votes
0answers
17 views

Make Solr search results link to page rather than node

Is there a good way to make Solr search results link to the page that a node exists within rather than the node itself? For example, I have API pages that have several different nodes of different ...
0
votes
0answers
19 views

“Did you mean this ?” Google site search and views exposed filter integration

Is there a way to use Google site search to search through Views Exposed Filters. Basically for autosuggestion and "did you mean this".
0
votes
1answer
15 views

Search for drupal site using taxonomy

We are due to move our website (a rather large charity site) and we would really like to make sure search is working as well as possible. We are currently working on tagging all our content using a ...
3
votes
4answers
60 views

Remove submitted by on Drupal 7 search results

How can I modify the search results on drupal 7 so that the submitted by author and date doesn't appear?
0
votes
0answers
24 views

An AJAX HTTP error occurred in Search autocomplete

I am using Search API db and Search API autocomplete modules everything was fine for 200-300 contents. Now I imported around 50,000+ contents to the site and when I start typing in the autocomplete ...
0
votes
0answers
17 views

Add Search keyword to views query alter

I need to alter my views query before the views result gets displayed. I need to search a key word in taxonomy title and description field and only display the updated search results. I added both ...
0
votes
1answer
17 views

ApacheSolr - No Documents or Data in Index

For reasons unknown to me, Apache Solr isn't indexing any of the Articles that I create. I have about 10 articles, just for testing, and Solr tells me that no documents have been indexed, nor have ...
0
votes
1answer
30 views

Search inside title and body

<div class="views-row views-row-1 views-row-odd views-row-first"> <div class="views-field views-field-name"> <span class="field-content"><a ...
2
votes
2answers
112 views

Using orderBy correctly with hook_query_alter

I have a hook_query_alter function that I'm using to edit my search.module results. It works ok so far. However, I'm having trouble adding an orderBy condition that I need. Here's the SQL I want added ...
0
votes
2answers
48 views

Passing variables via template.php for search module

I'm using search.module. I used dpm(get_defined_vars() ); in my search-results.tpl.php file to see all returned variables, so I can reference a needed variable in some PHP code I'm writing in there. ...
0
votes
1answer
20 views

How do I show a basic search block on the front page that integrates with search api?

I've been creating my search pages in Search API, but I want to offer a search block on the front page or other pages that can do what the core search block does. Is there a way to either integrate ...
2
votes
0answers
35 views

Is Search API module 'English-speaking' only?

I am developing a multilingual (English-Ukrainian) Drupal website using Entity translation module. Everything went smooth before I tried to use the search module. I have Search API, Database search, ...
0
votes
0answers
18 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 ...
0
votes
0answers
14 views

How to include both taxonamy and content type in a single views exposed search form

I need to add an exposed search block using views in the site. Which searches the data in content types and taxonomy terms that i specified in my views filter. Any way to do it.
1
vote
0answers
15 views

Remove language:en in search box?

I have a search box with the custom_search module, and everytime I search for content it always adds language:en or language:fr to the end of my search term. Is there anyway to remove this or stop ...
0
votes
0answers
11 views

After one invalid search, search box in block stops working

Site with small search box (search block form) in the header. When you make a search, a large search box also appears at the top of the search results page (this is default behaviour). The issue I'm ...
0
votes
0answers
24 views

ApacheSolr - Create Custom Field Bias

I'm trying to create a new Field Bias with the ApacheSolr module. It's a field I've called References, and it's associated with only certain types (articles, pages, etc.). Because I'm also using the ...
0
votes
0answers
18 views

Using substr() with Drupal search-result.tpl.php returning fewer characters than expected

In my search-result.tpl.php file I want to return only the first 200 characters of the body field before outputting it to the screen (assuming there are that many characters). I'm trying to use the ...
1
vote
2answers
91 views

When does the core Drupal search module is worth using?

I mean, is there any approximate number of nodes or just website pages (or any other measures of website size) when the out of the box Drupal search module is still worth using? I understand that much ...
0
votes
0answers
30 views

Drupal views contextual filters multiple values for search term

As title suggests I want to have a contextual filter on search term but also to have the posibility to use multiple values, atm search term has no support for multiple values.
0
votes
1answer
57 views

How to make custom module specific data searchable in Drupal 7?

I just created custom module with name example , And it has a form to enter data to it's specific table. I want to make the data in this custom table searchable with Drupal default search feature. ...
0
votes
1answer
12 views

How to have search results from a views defined block display on page?

I have created a custom search block with Views 3 in Drupal 7. I would like the results of that search be displayed in a page (like the default drupal search block) and not in the block itself (which ...
0
votes
1answer
78 views

Dreadful Google CSE error

We have several sites on a multisite structure, and almost all of them use Google CSE. However, some of these websites display the error "Refused to display 'http://www.google.com/cse?cx=...' in a ...
0
votes
1answer
55 views

Search across multiple views

I have a page with two view blocks in it, each pulling from different content types. Is there a way to allow the user to search both views at the same time? I want to be able to enter a search term ...
0
votes
2answers
20 views

How to use search_excerpt() function from core search module?

I want to use the function search_excerpt() to generate excerpts. Unfortunately this function is returning exactly same text as I submit. For example I tried this: $test = (search_excerpt('test', ...
0
votes
2answers
27 views

Coloring rows in returned drupal search results

I'm trying to modify search-result.tpl.php and template.php to color the backgrounds of search results returned such that every row has a different color than the one that preceded it. Only two colors ...
1
vote
2answers
64 views

How to search more fields using single text field textbox

I have a content type with fields title, body, short description & long description. In view i added these fields. i need to add an exposed search text-field in view to search the search term in ...
1
vote
2answers
22 views

Editing Drupal Search SQL

I'm using the basic Drupal Search module (search.module) and I want to customize the SQL of the search. I don't know how to go about doing this. There are two things I want to edit in the SQL: 1) ...
0
votes
1answer
29 views

Displaying Images in Search Results

I have a Resource content type that has an image field (field type and widget are both 'image'); the standard image type. The title of this field is 'Icon' and the machine name is 'field_icon'. I ...
0
votes
1answer
8 views

Move people search to list page

Is there a way or module that allows me to move the search tab of the People page to the List tab?
0
votes
1answer
21 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.. Thanks in advance!
0
votes
2answers
10 views

Unset search after leaving page

In my drupal admin content page when I search for something it keeps displaying the searched items. Even when I leave the page and go back it is still displaying items from the search querie When I ...
0
votes
0answers
25 views

solr search displayview did you mean?

Currently I have setup the whole solr search and everything is working great! When you begin to type your search string the solr search block, it "displays did you mean?" This is great except for the ...
0
votes
0answers
29 views

Search Api Autocomplete view all results html

We're experiencing a problem with 'view all results for:' functionality on our solr search. if i keyword search, i get a list of nodes which match the keyword that works fine. if i click the view all ...
0
votes
0answers
17 views

New title on old page - search results show old title

I have a page that used to have 2010-2012 in the title, now it has 2014-2017. When I search for that page using HUD or HUD Grant, I want the new title to show. How can I do that?
0
votes
1answer
40 views

Customizing search results page to use template.php and search-results.tpl.php

I'm using Drupal 7, the basic Drupal search tool. I like what it returns as far as the actual node pages. However, I want to customize the main search results page that shows a list of results after a ...
0
votes
1answer
36 views

Good and basic solution for search page

I'm starting in on drupal search engine and I am looking to create a search page. First I would like the search is on very specific fields of some content types. What can be done with the basic module ...