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
0
votes
0answers
14 views

Solr Indexing media fields

I have a bespoke media type that I'd like to index with solr. If I add a new field to an existing Media Type, I can add that field to the solr search using the interface found at admin/config/search/...
0
votes
1answer
30 views

Redirecting old file URLs (no pattern)

running Drupal 7.65. Our previous website manager moved us from Drupal 6 to Drupal 7 and cleaned up the file structure on our server. While all the files that are now on our website have clean and ...
0
votes
1answer
35 views

Search info_split is empty

I need to customize the search results of a drupal 8 (8.7.0 currently) page a bit and need the node_type for this. According to search-result.html.twig, this should be stored in info_split.type, but ...
-1
votes
2answers
169 views

Search by reference field target ID [closed]

I have a Project content type, which has a reference field to a Contact entity that has a Client bundle. I can get the reference target ID from the node. I want to find the nodes that contain a ...
0
votes
0answers
17 views

Custom no results message in search api

I am trying to change the text that appears when no results are found with Search API, including to include links. I tried with views, without success (the same text appears). Do you know how to ...
0
votes
0answers
9 views

Cluster Search API results by content type

I'm using Search API to index and search my site. The site has several content types. I'd like the search results to be clustered by the content types. Specifically, I have a content type called "...
0
votes
2answers
399 views

How to programmatically search content with a specific taxonomy term with Search API?

I'm working on programmatically searching content with the Search API module. Ideally I would like the ability to select which taxonomy term of a content type is being searched. For example, if I have ...
3
votes
1answer
43 views

Finding nodes that have not been indexed

On a Drupal 8 website I'm administering the ratio of paged indexed by search_cron stays at a value far below 100%. New pages are indexed, but it looks as if updated pages are not indexed again. I ...
0
votes
0answers
18 views

Is it possible to store a query calculation result in a search index?

I am counting nodes of a specific type associated with terms with this query: $connection = \Drupal::database(); $query = $connection->select('taxonomy_index', 'ti'); $query->join('...
1
vote
2answers
96 views

Search API Solr Configured, Content Indexed, No Search Results

I'm running a Drupal 8.6.13 site with Search API 8.x-1.12 and Search API Solr Search 8.x-2.7. Everything seems to be properly installed and configured - my Solr admin panel shows a configured core and ...
0
votes
1answer
165 views

How do I index all the content with the search_api module?

I am using the Search API module with Search API Solr. When I visit my index page at http://example.com/admin/config/search/search-api/index/my-example-index, I see the "Index Now" button is disabled ...
0
votes
0answers
88 views

How do I sort the field value by null in Search API Solr?

I want to alter the search API Solr query in Drupal 8 to order by field null in hook_search_api_solr_query_alter(). How do I add my sort expression in the Solr search query? Do I need to add it in ...
0
votes
1answer
23 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. ...
3
votes
1answer
94 views

How can I increase the number of excerpts shown per result?

I have approximately 300 book-sized documents (50k up to 300k words each) that I'm trying to make searchable. I would like to display as many excerpts from each result as possible up to a maximum ...
0
votes
0answers
17 views

Display current filters from view

We have a landing page that has a search block that has exposed filters for category and content type. We are using facets to add the exposed filters to the page. The exposed filters are displayed to ...
0
votes
0answers
12 views

Fulltext fields search — ONLY one keyword return none results

I am building search enhancement in Drupal 8 site. I have one search server: Acquia search API In the search API fields tab, i set up title, rendered HTML and taxonomy term as fulltext fields and ...
0
votes
1answer
31 views

Result should return a value greater than or equal to the selected facet

Here is the scenario. I have created a facet which list all GPA's (these are decimal numbers). e.g. 2.0, 2.5, 3, 3.5 etc. What I wanted is when say a user choose 2.5 GPA from the facet, the returned ...
2
votes
0answers
25 views

Fine tuning Search API with Solr

After figuring out that tokenizer was breaking up a search phrases into individual keywords and turning that off in the UI, searching for a phrase actually brought the expected page onto the first ...
2
votes
1answer
58 views

How do I add custom pages or view pages to search index?

Suppose I have a custom page built in a custom controller. Or similarly, a view page the displays the list of nodes, such as the classic "admin/content" page. I want certain user roles to be able ...
0
votes
0answers
37 views

Full text search with taxonomy term

I have a view with full text search working I configured with Apache Solr. My index fields are title, body, taxonomy tags. I have a need to show a hierarchical tree of taxonomy terms on the left of ...
1
vote
0answers
114 views

Debugging search_api (no results in production)

I'm using search api, search api autocomplete, and search api pages. I want a search engine for my taxonomy terms. I configured the modules in the same way locally, and in production, locally, ...
0
votes
1answer
27 views

Search API - Acquia Search - Keyword Search

I'm using Acquia Search for searching within certain content types (articles, posts, etc). It seems to work for certain keywords but not others. For example, if I search: "Apple TV", I'm expecting the ...
0
votes
3answers
548 views

How to place facet block in views page header? (not regions)

I've created a search with Search API module and Facets module. I've added two taxonomy term name fields to my search index and created two facets for those fields. Just for testing I've placed the ...
1
vote
1answer
245 views

Programmatically pass parameters to Apache Solr integrated with Search API

I'm currently trying to enable spellcheck results with the search api. If I visit my apache solr server directly with http://myserver:8983/solr/d8/select?q=goood+worksd&spellcheck=true and provide ...
0
votes
0answers
22 views

Views Search API Filter on Year (date) field with Select List

Using Search API with Solr I am able to use views filters on all fields that are taxonomy getting a full list of the terms. I am trying to use filter on the date field, but am not getting a list of ...
0
votes
1answer
85 views

Use 'Search Api Attachments' file extractor in my own custom 'Search Api' processor plugin

I'm writing a custom processor for search api that will search body content of nodes for links to pdfs and extract the content from them to be indexed. It's meant to be able to do the same thing ...
0
votes
1answer
40 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 ...
1
vote
1answer
245 views

Search API autocomplete group suggestions

I am using Search API, Search API autocomplete and Solr search. I'we made a view with an exposed filer that has a funcionality of search api autocomplete. For now, autocomplete suggestions are just ...
0
votes
0answers
86 views

Seach issue with Chinese words

I am using these modules: https://www.drupal.org/project/search_api_solr https://www.drupal.org/project/search_api_solr_multilingual Solr is version 4.5.1. It has issue with Chinese words and ...
0
votes
1answer
24 views

How do I reset my search result link?

I created a custom search plugin for a custom entity. I would like to change the link that is presented to the user on the list of results. I had originally set it to the canonical page using $entity->...
0
votes
0answers
393 views

Programmatically change order

I've been searching for days but cant find a working answer for my issue. I have a Drupal 8.6.7 site with search_api and search_api_solr installed. I have a view based on solr results. I want to sort ...
0
votes
1answer
170 views

Direct query with Search API Solr

I am new to Drupal. I'm trying to implement advanced search on my Drupal8 website. It's working perfectly with the logical operator 'OR' and 'AND' but not with 'NOT', '+', '-'. Here is my request : $...
0
votes
0answers
20 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....
0
votes
1answer
26 views

How to increase the size of the field in Search API?

I am using Search API for my drupal 8 website, after indexeing some fields (interested in entity reference type fileds), in the database I can see that my field field_name:entity:title gets trimmed, ...
1
vote
0answers
41 views

Retain query in search block input

How can I retain the current user's search in the search block input? Please don't suggest a third party module for this unless strictly necessary. I'm also aware of views exposed filter and that's ...
0
votes
1answer
35 views

Embedding a view for search and redirection

I have set up a view for searching using Search API. In my specific setup, I need this search to be context sensitive, i.e. I have several pages /foo/search, /bar/search, ... and these return ...
0
votes
2answers
167 views

Solr search views cache issue

I have views for solr search result and I have highlight processor enabled. There seems to be cache issue effecting search result. Search results are rendered array of entities. For example: If I ...
0
votes
1answer
43 views

Prevent underscores from removing text?

Drupal seems to be removing all text prior to an underscore in my form. This is in the Form.php file of my module implementing Google CSE, so I cannot change the attribute name. if (array_key_exists('...
0
votes
0answers
44 views

preprocess views send arguments to facets

I am trying to filter user ip on the template.theme file on Drupal 8 and the intention was to filter on user ip and based on the ip add in the correct arguments into the facets that is created in ...
0
votes
1answer
100 views

Solr search api indexing referenced fields by their id not value

So i created a basic Solr core and index. In the index i added several diff. content types and added a lot of fields from those CT, including a aggregated field (union of several diff. fields: plain ...
0
votes
1answer
388 views

How to send a custom Solr Distance Query with SearchApi

My nodes have a geofield and my search query should find all the nodes within a range. I've managed to create a search form against my Solr Server with views. But I want to do the request by myself (...
1
vote
1answer
909 views

How to add pagination to programmatically rendered search result template

I am trying to implement the pagination in drupal 8 custom page. I have a custom array which I am rendering using theme, I need to add pagination for it. $internal_result = array_merge($...
2
votes
1answer
33 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 ...
0
votes
1answer
327 views

Cannot add a file with Search API Attachments

I'm using Search API with Solr and Tika under D8 to build a search engine on my website. I could not find any tutorial under D8 for that, so I followed one I've found on D7. However, when I try to ...
0
votes
1answer
21 views

Facet blocks are not appearing, when indexed view block is called programmatically with views_embed_view

I have made an indexed view of my products. In that view, i have a page and a block. If I output the block from drupal/admin/structure/block the block view is shown together with the facet blocks. ...
0
votes
1answer
35 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 ...
1
vote
0answers
21 views

How to link from a group of fields in a View?

I am using the Search API module in Drupal 8.6.3 and I have a page of search results displayed using Views. Each search result row consists of a number of fields. I would like to link each whole ...
0
votes
1answer
446 views

FACETS : Add “Apply” button that will apply all filters in one query

Is it possible in D8 to add an "Apply" button that will apply all facet filters in one query and not having an ajax reload on each option changed ? i find this for D7 : https://www.drupal.org/...
1
vote
0answers
111 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 ...
0
votes
1answer
26 views

Config changes only propagated via manual form submit

My question is related to the Search API Drupal 8 module. I am modifying my configuration via config file updates. After I am installing my custom module, I can see my config reflected in the search ...

1 2 3 4 5 38