Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
208 views

Redirect Search API view result (Leaflet map) to display in a pane

The particular Search function starts as Full Panel Page in a style to a Google Maps Location Search page; Search Input (Block) to the top left overlaid on a current Leaflet map based on the logged-in ...
Paul B's user avatar
  • 589
0 votes
1 answer
347 views

How to change Search API index field machine name?

I am using Search API and Search API Solr modules on drupal 7. I have also drupal 8 and drupal 9 sites, and all those sites are indexed on the same solr index. So I need the same machine name for ...
Asatur Vardanyan's user avatar
0 votes
0 answers
55 views

Filter Content and Files using the same Taxonomy term filter in Search API

I have several File (File Entity) and Content (nodes) types both referencing the same Topic taxonomy using the same field (one field, reused). The contents of these files/content are indexed in the ...
Joseph's user avatar
  • 1,626
0 votes
1 answer
500 views

How can I programmatically change the parse mode?

We have a view that works with Search API and Solr search. The multiple search terms work with single quotes and with no quotes. I want to make the search terms work with double quotes as well. The ...
Jaswinder Singh's user avatar
0 votes
1 answer
56 views

How to edit Advanced Search Form's Content Type checkbox-list using hook_form_alter

I have a Drupal 7 setup. I want to remove few Content types from the Content Type checklist that appears in Advanced Search form. I could see that advanced search form comes in 'advanced' field-set of ...
Vik Durve's user avatar
0 votes
1 answer
79 views

Which is the highest version of Solr that is compatible with the "Apache Solr Search" module?

I have a setup of Drupal 7 with the Apache Solr Search module. I am planning to upgrade the solr server's current installed version(3.6) to a higher version. The latest version of Solr available in ...
Vik Durve's user avatar
-1 votes
1 answer
359 views

solr is running, but search isn't working: "The Solr server of Solr could not be reached."

I am using Search API Solr (Version: 7.x-1.14), and search was working fine but has stopped working. I now see "The Solr server of Solr could not be reached" at admin/config/search/search_api. In ...
arnoldbird's user avatar
  • 1,287
0 votes
0 answers
536 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 ...
arun kamboj's user avatar
0 votes
1 answer
144 views

Display the results of a form submit on the same page just under the form

I have created a form and it takes in 3 values which are Brand, Item and Zipcode. The values are queried and the results are fetched the database table. I want the results to be shown in a table ...
Rony Samuel's user avatar
1 vote
0 answers
52 views

How to mark related entities as dirty in search api module when edited?

I am using Drupal 7 with the search api. I understand that one of the 'common pitfalls' of the search api is 'Changes in related entities don't lead to re-indexing'. I am bringing in a field called '...
Peter's user avatar
  • 11
0 votes
1 answer
116 views

Can I get the relationships of a node using node_load()?

I want to load relationships from the node_load(). So for example getting the article content type and loading the author information with the same query. How would I go about doing this? The end ...
Peter Ayello Wright's user avatar
0 votes
0 answers
85 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, ...
Joseph's user avatar
  • 1,626
1 vote
2 answers
2k 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? ...
Neograph734's user avatar
  • 8,449
0 votes
2 answers
165 views

Facet pages bring site down because of bots

We have a search page that uses facets and recently our website has been going up and down. When looking at the logs I noticed that bots (Bing, Ahrefs, etc..) are hitting these facetted pages a lot. ...
albertski's user avatar
  • 3,497
0 votes
1 answer
97 views

Converting seconds to date with Facet API

I've inherited a project that deals with Drupal Facet API. I've got everything working fine, except for the display of the date for events. The filter by date and time >> start date displays the date ...
snarf1974's user avatar
0 votes
0 answers
23 views

Get apachesolr module to work with solr 5.5 without reindexing

I upgraded my drupal apachesolr search module from 1.8 to 1.11 and I also upgrade the apachesolr version from version 4.10 to 5.5, and managed to upgrade the index folder so that it can be used for 5....
Moses Liao GZ's user avatar
2 votes
1 answer
142 views

How to filter by language in default search

On a D7 (7.60) site, we're currently using the default search tool for a little search form block on the page. Our site has multiple language versions, dependent on url. Right now, content in 4 ...
turpentyne's user avatar
0 votes
1 answer
38 views

Is it possible to do a user search by taxonomy?

my question is because I have users with a taxonomy field and what I want to do is search for those taxonomies. Example: a user in his profile chose a taxonomy, let's say soccer. I want to make a ...
Cesar Gonzalez's user avatar
1 vote
0 answers
271 views

How to use wildcard search in apache solr search module?

I am working on apachesolr search module. I want to implement wildcard search I have used hook_apachesolr_query_prepare() function to modify apachesolr query but it is not working can any one give ...
muraliniceguy97's user avatar
-1 votes
1 answer
73 views

Search result - 500 error

My Drupal 7 websites started to throw 500 error when I see the search result page. How to replicate: When I enter any keyword and hit search button then I see this URL "http://www.website.com/search/...
mak's user avatar
  • 138
0 votes
1 answer
354 views

Drush 7 @self picks configuration from aliases.drushrc.php randomly

I'm trying to index Search API Solr using Drush 7 on platform environments, but the drush search-api-index command is failing for a very strange reason. There are clues of the problem below, but I'm ...
JamesWilson's user avatar
  • 2,188
0 votes
1 answer
33 views

Is there a way to search Drupal's and contrib modules configuration settings?

With so many different modules in use with configuring Drupal it is hard to keep track of which settings are configured where, such as whether some CSS is set by the Code per Node or CSS Injector. It ...
vfclists's user avatar
  • 1,269
0 votes
1 answer
463 views

Change sort order based on facet selection

My view displays Webinars, I use facets to choose between upcoming and archived. The default sort order is ASC, which is fine for upcoming dates, but if you select the archived facet, I need the sort ...
Sam T's user avatar
  • 141
0 votes
1 answer
74 views

How to search for complete SKU like "K-00019" (without splitting it at "-" and without removing leading zeros)

I am using Search API to search commerce products by SKU. But when I enter "K-00019" as search string, every item is retrieved that contains "19". I investigated why this happens and found, that a ...
Madam Adam's user avatar
2 votes
0 answers
443 views

How to index to multiple Solr cores with 'Apache Solr search' module?

I'm trying to set up a multisite search across several legacy Drupal 7 sites that use the Apache Solr search module. I'm doing this by using a shared core that all the sites will index to, and a ...
Steve P's user avatar
  • 21
0 votes
1 answer
40 views

Including static pages in the search index?

I've got a page set up like this: $items['mypage'] = array( 'title' => 'My Page', 'page callback' => 'mymodule_mypage', 'access callback' => TRUE, ); and then function ...
rockstardev's user avatar
  • 1,049
0 votes
1 answer
396 views

Facets display values instead of labels

I am using the facets module to add filter blocks in my view. I have a list field wich contains FR|France IT|Italy My dropdown list of facet display values (fr, it) I want to display (France, Italy) ...
A.Sana's user avatar
  • 147
0 votes
1 answer
117 views

Solr server URL needs to include a scheme?

Recently I am facing a issue with all my D7 websites which I have migrated to a new server. The case is as follows -> All Sites have been setup with Apache Solr and working fine on my old server ...
Karthik Varma Y's user avatar
5 votes
1 answer
2k views

How do I set up Search API index as cron task?

From what I've read in Search API's settings, it sounds like pages should be indexing when cron is ran. This doesn't seem to be the case, but perhaps my logic is flawed. I help manage a blog/news ...
Kellen's user avatar
  • 457
0 votes
1 answer
81 views

how do I display both a term view and parent terms view on the same taxonomy term page

I am using search api views to override core taxonomy term pages. I would like to create a view that displays parent term content as well like a related content block. Or as a view I can use when ...
drupalstrap's user avatar
1 vote
1 answer
1k views

Programmatically set active facets on non search page

I'm using facet api with search api and SOLR. This all works as expected. For non-search pages I use the views facet block and this displays the facets as required. What I want to do though is have ...
Chris Leather's user avatar
1 vote
2 answers
833 views

Full phrase search

Now I'm using "Search_api" module and when I input, for example, "test case" - it's output all articles which consists both of this words separately. But I want to make search with exact phrase "test ...
Nikita Yunoshev's user avatar
0 votes
1 answer
20 views

Search results showing nodes which are already under NODE_ACCESS_DENY

In Drupal 7, I have some nodes that are restricted access for anonymous user. I implemented this using hook_node_access where if the user_is_anonymous and if the operation is View, I am giving ...
Kiran's user avatar
  • 261
3 votes
0 answers
787 views

How to make title exact match appear first in search API

For example, I have content A with : title = Quick brown fox jumps body = (empty) and then I have many other content with word 'quick', 'brown', 'fox', and 'jumps' all accross the body field. I use ...
Permana's user avatar
  • 254
0 votes
1 answer
31 views

How to index field as single value?

I use Search API, Search API Database and FacetAPIto create custom search. And there are mistakes in facets when it displays field with hyphens. For example, there is a text field "city" with value of ...
Alexander Mudrov's user avatar
1 vote
1 answer
610 views

Not able to alter field value/s using hook_views_pre_render or views api hook functions

I have a search result page created using search api and views. My search result page is based on this tutorial and it seems to work properly,however I need to tweak some field's output value and I ...
ShanjayG's user avatar
  • 211
0 votes
1 answer
63 views

How to remove "Submitted By" data from google search engines in drupal7?

How can I prevent showing of Submitted by username information on google search result pages. I looked into some of the answers but I am not sure those solutions will remove from google search. I am ...
Suraj's user avatar
  • 884
0 votes
1 answer
59 views

Token replacement by its value before indexing in apachesolr

I'm using solr 4-x (apachesolr) for search functionality in my Drupal 7 site. I'm using a token in some long text fields in some nodes of different content types across my site. Lets suppose the token ...
Ankita Tayal's user avatar
-1 votes
1 answer
46 views

What does "apachesolr_access_node_ignore = 1" mean?

What does apachesolr_access_node_ignore => 1 mean? Does it affect the search, when apachesolr_access_node_ignore is set to 1?
steniya's user avatar
  • 133
0 votes
1 answer
187 views

How can I configure the search engine to search by dates? Drupal 7

I am new using drupal and I am creating a website for renting various items. I need the searcher to give me as a result the available articles between 2 dates, that is, the user searches for items ...
Onimus-X's user avatar
1 vote
1 answer
221 views

Facet filter in Views wrongly returns "No results"

I'm running into a strange behavior with Search API and Facets API, and I hope someone can point what I'm doing wrong. I am working in Drupal 7 with Views, Search API, Database Search (search_api_db)...
argiepiano's user avatar
  • 2,092
0 votes
0 answers
94 views

Views and Facets without Search API

Is there any way to use Facets for a Views' exposed filters without using Search API? This is for Drupal 7.
argiepiano's user avatar
  • 2,092
1 vote
7 answers
1k views

How to remove default 'search' text form search form

I can't seem to figure out how to get rid of the default text "search" on my search form (located here: http://dev.mysourcewise.com/media-center) I can confirm the following works in Chrome's console:...
Webdrips's user avatar
  • 742
1 vote
2 answers
1k views

How do I get only node IDs from the search results?

I'm using Search API Solr with custom searches in code, but I want to find a way to limit the return results to only the nid to save on bandwidth with our third-party solr server. I've tried $query->...
Chris's user avatar
  • 516
0 votes
1 answer
352 views

Proximity filter without Solr

We have a view that displays indexed nodes and we would like to add the ability to filter by proximity to a user-input zip code. I know this can be achieved with Solr and the Search API Location ...
ssteigen's user avatar
0 votes
1 answer
124 views

Custom search_api query for categories block

A site I am building has products that are indexed with search_api + facetapi + search_api_solr. One of the indexed fields is a (hierarchical) taxonomy term reference. In case this is relevant, I am ...
donquixote's user avatar
  • 3,662
1 vote
2 answers
446 views

Facetapi: Rewrite facet machine names?

I am working on a website with facetapi + search_api, with some facets for taxonomy term references. One of my facets is getting the machine name field_xyz_parents_all or field_xyz:parents_all, which ...
donquixote's user avatar
  • 3,662
1 vote
0 answers
391 views

Programmatically make a proximity search with Solr [closed]

I'm using Search Api Solr to do programmatic searches with the following example code. How can I include a proximity search with this approach? I've installed Search API Location - I'm looking through ...
Chris's user avatar
  • 516
1 vote
2 answers
2k views

How to implement a searchable addresses database (for a form)?

I'm not sure if I should ask this type of question in this site, but I already tried to ask in the Drupal forum here with no reply so far. I'm trying to find out the best way to implement a solution ...
Seeker's user avatar
  • 121
1 vote
0 answers
170 views

How to show the term name in the URL instead of a term id for faceted searches?

Using Search API and Facet API, how can you set up exposed facets or indexing so that you can create better URLs instead of something like: ?q=field_myfield_categories:123,456,789 I would rather ...
Kevin's user avatar
  • 28k

1
2 3 4 5
11