All Questions
46 questions
41
votes
3
answers
56k
views
How do I customize the search result page?
I have customized the teaser view of my content types and the page view. Now I need to use the teaser view for the search results page. By default, Drupal displays a full text jumbled mess for each ...
4
votes
1
answer
4k
views
Views (Search API): Search taxonomy parent and display all children
Problem
I have a country taxonomy field. The top level is continents then below that countries:
Asia
--China
--Thailand
Europe
--France
--Germany
I'm using search API (with solr backend) to index.
...
4
votes
1
answer
4k
views
showing an image field from solr index on custom solr search page
I use the Apache Solr Views module to create a View that displays only items from a specific content type.
I would like to include an image as well on the view. I managed to get the images on my site ...
14
votes
1
answer
12k
views
How to make search on all fields (title and tags as well as body)? [closed]
The built in search engine in Drupal 7 doesn't search on the title or tags fields, just on the body of the node. I need to be able to search on all fields.
What is the best module to install for this ...
12
votes
8
answers
7k
views
How can I change the Apache Solr search URL?
How can I change the default Apache Solr URL path from "search/apachesolr_search/term" to something else?
6
votes
2
answers
8k
views
How to remove core search index?
I' switching core search to SOLR. The core search module still needs to be enabled for SOLR to work. How to I remove the (rather large) core search index?
The "search settings / clear index" option ...
6
votes
2
answers
12k
views
Remove or hide the submit button on search block in Drupal 7
I need to do some custom theming on the search block in Drupal 7.
Specifically, I need to add a class to the submit button that makes it invisible and removes it from the content flow. So:
<div ...
4
votes
5
answers
7k
views
I have no fields available for sorting with Search API sorts module
This question is similar to another question I had, but now in a different context. My previous question was: Search text box for Search API + Database + Search Views + Facets API + Facets Bonus
...
3
votes
2
answers
8k
views
Searching on Taxonomy terms with the Search API module?
I've been playing around with the Search API module for a little bit now, and it seems to be working fairly well, but I can't figure out how or why I am not able to search on terms even though they ...
2
votes
1
answer
177
views
How to allow user to use one exposed filter and select between two views
I am using the search_api module with views as the back-end. Users will have the ability to search through two different kinds of content, and there will be two separate views (one for each content ...
2
votes
1
answer
6k
views
How to theme the page template for search results
I want to change the page template when displaying search results. This seems straigh forward when dealing with a content type, but what is the content type for "search results".
E.g. I'll like to ...
1
vote
1
answer
2k
views
Search results: order & group by custom field
I customized the display of my search results so I can show custom fields in the search results (other question).
I have a custom field ('Department'). I want to show the search results grouped and ...
1
vote
1
answer
1k
views
return other indexed fields using SearchApiQuery($index)
I created an index that indexes taxonomy terms.
I indexed the term name + field_skill type text.
The current result shows only the term id + score.
I want to show also the field_skill.
$term = '...
-1
votes
2
answers
3k
views
Greater control of search results using $snippet
In *node--content_type.tpl.php* I can do the following:
hide($content['body']);
print render($content);
Can I draw and hide field elements from a node's content in a similar way from $snippet; on ...
22
votes
5
answers
10k
views
Search only for the currently active language
How can I restrict the results from a default search in Drupal 7, to bring only the nodes that are in the current language?
My website has a three language switcher; the user chooses what language he ...
15
votes
4
answers
21k
views
Restrict Drupal Search to few content types
I am having drupal 7 site with search enabled. I want to restrict the search to a particular content type/types, by excluding which types i dont want to appear in the result. How can i do this?
And ...
9
votes
3
answers
6k
views
Does Drupal have an AJAX solution for search results, preferably with Apachesolr integration?
Specifically, I'm referring to being able to have the top 5 search results display as options in a drop down menu while the user types in a search query, somewhat similar to how node reference ...
7
votes
2
answers
10k
views
Remove a content type from search results
How do I go about removing a content type such as webforms from the site search results?
7
votes
5
answers
13k
views
how to overwrite the search box?
<div class="fr_search">
<form action="/" accept-charset="UTF-8" method="post" id="search-theme-form">
<input name="search_theme_form" id="edit-search-theme-form-1" size="...
6
votes
1
answer
553
views
Language selector for Apache Solr search form
How can I do something like this with Apache Solr in Drupal 7?
This will be the front page of my site, and depending on the language the user chooses, he will be redirected to the language-specific ...
4
votes
4
answers
2k
views
Remove "Submitted by" on search results
How can I modify the search results on drupal 7 so that the submitted by author and date doesn't appear?
4
votes
1
answer
3k
views
Search results - Show custom fields
Is it possible to change the output created with the Search module? I want to show custom fields, and I want to hide the description, user and date...
3
votes
3
answers
2k
views
Why is the default Search module not returning partial results?
Drupal 7 default Search module not returning partial results
I.E. I have a series of SKU #'s:
S0160-0003
S0160-0004
S0160-0005
S0160-0006
Searching for S0160 returns no results. I only get results ...
3
votes
2
answers
1k
views
When does the core search module become 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 ...
3
votes
1
answer
65
views
How to access to the user info on the search page?
When I was trying to resolve this question: How to display the user picture on the search page? I found that in the THEME_preprocess_search_result function I can't access to the user information (I ...
3
votes
1
answer
81
views
How to display the user picture on the search page?
I want to show the user picture on the search page. Currently only its show the user email or name, but I want to show the user profile picture.
How can I do that?
Note: the search page is about the ...
3
votes
1
answer
77
views
How to display the user registration or profile field on the search page?
How can I render/display user profile or registration field on search result page (user search)?
3
votes
1
answer
2k
views
Use createFilter to build an advanced query using AND and OR with the search API
I have a search index of about 15 fields (profile2 fields) build with the search API indexer (mysql) and I need to build an advanced query. All fields are fulltext. The query input form would have ...
3
votes
1
answer
2k
views
How do I unset/hide certain fields from being indexed by the core search module?
If a content type has additional text fields, search core automatically indexes them because search core extracts all text from the result of node_view()
I can easily add extra index data via ...
3
votes
3
answers
3k
views
How do I make a custom entity update or create automatically update the solr index?
I have implemented a custom entity type which is essentially identical to what the Model module does, with a few additional fields.
I have followed the Apachesolr User module to understand how to ...
3
votes
1
answer
1k
views
How to keep labels displayed for all facet filters
I have Search API with Facets API set up. For my checkbox selections, how can I prevent the facets from hiding when they aren't available? I want all of the facets to be listed, even if not ...
2
votes
1
answer
646
views
Reindex a select group of nodes
I am maintaining a site that I did not build. It was discovered that some 300 nodes of type "custom" had incorrect url aliases. There are a total of 7961 nodes of type "custom" in the site at this ...
2
votes
2
answers
806
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 ...
2
votes
1
answer
527
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 ...
2
votes
1
answer
972
views
how to index unpublished nodes to apache solr
I want to display unpublish nodes to some of the user roles.
The apachesolr by default index only publish nodes.
Is there a way of indexing unpublished nodes to the apache solr index?
2
votes
1
answer
3k
views
Search text box for Search API + Database + Search Views + Facets API + Facets Bonus
I have check boxes and radio buttons (after a few patches) in my facets, using Search views. I want to be able to present the user with a text search box so they can search for a title and another ...
1
vote
2
answers
4k
views
Building an advanced multicriteria search
I'm kinda new to Drupal and I would like some advises.
I have a Drupal website, with a few nodes (1000 - 5000) of a particular content type, let's say a "House".
This "House" content type has a few ...
1
vote
4
answers
6k
views
How to exclude a node from being indexed based on a field value?
I would like to exclude some nodes from being indexed based on one field value (not content-type) on a drupal 7 installation, I can't find a hook letting me doing it, please help ! thank you
1
vote
1
answer
943
views
Search Api Solr - Pointing term links inside a view to its facet
Using Search Api. Solr as a backened. Search pages built with Views. When adding a term field to a view, that term links to the core taxonomy term pages. That term should instead link to it's facet(...
1
vote
1
answer
2k
views
Why does the core search module not index node titles?
The search results only show terms in the body if that. Take the example of a product site. There is a product called Funkywidget with a description that has Funckywidget written twice in it. However, ...
1
vote
1
answer
1k
views
Views search to find users based on terms
I want to have search inputs for users to search and find other users based on associated terms(I'm using term reference) of their user profile. I'm using Search-API, Views-3, and Profile-2. I ...
1
vote
1
answer
567
views
multiple sites use one apache solr server
I am a beginner of using Apache Solr. I made a mistake two weeks ago.
I link two of my sites to one Apache Solr server. One is dev site, another is live site. There are some different data between ...
1
vote
0
answers
106
views
Create advanced search
I currently use search api solr and facetapi to filter jobs on my website.
I now want to create an advanced search on a different page using the same taxonomy as I use with facetapi on my jobpage.
I'...
1
vote
1
answer
1k
views
search from modify html output
im having problems to modify html of drupal search form. Currently it looks like this:
<form action="/" method="post" id="search-block-form--2" accept-charset="...
0
votes
2
answers
2k
views
hook_apachesolr_process_results having no impact on results
I've posted this at d.o, but I'm hoping maybe someone here might be able to help. (The documentation on apachesolr for D7 is so far rather depressing.)
I wrote a module for a D6 site implementing ...
0
votes
1
answer
4k
views
How do I change submit URL for exposed search filter?
I've created view using Search API Views with two different displays.
First Page display (by_terms) and with the following options:
Page settings: Path:/taxonomy/term/%
Contextual filters: Category: ...