Questions tagged [search]

Use it for the Drupal core module or any module extending its functionality, or aiming to replace it.

0
votes
0answers
11 views

Custom facet processor not displaying on facet setting

We have a custom module,mymodule, where we create a custom facet processor for a facet we created (myfacet). When we enable the module and cleared the cache we are not seeing the new processor display....
0
votes
0answers
11 views

Invert facet setting for single option on search

What would be a good approach to invert a single facet option? Is this even possible by the system? This is what I have in mind: Let's say we have got a bunch of facet elements to select from on a ...
0
votes
1answer
12 views

how to remove duplicate in view search API?

I get some duplicate article for the site. How can i remove the duplicate? There is no distinct setting. Here is the setting of view
0
votes
0answers
18 views

how to change the keyword for URL search with new search

I have a problem with the search API function. The first time I enter the keyword into the search field which will show the results and the URL like this for example: www.avc.com/avs/search/search-...
0
votes
1answer
12 views

no search_api_solr results when search term ends with number

I have search_api_solr with views (I use as external Solr server https://hostedapachesolr.com. ) There is this strange issue: 1/ When I search for 951, there are correct results 2/ When I search ...
1
vote
2answers
106 views
+150

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? ...
0
votes
1answer
17 views

Skip words/vary word order in search for autocomplete suggestions

I'm using an Entity Reference field which searches taxonomy terms of type Person to suggest options for autocompletion. Let's say, i have the following terms (Persons): - Jason Jay Smith - John ...
0
votes
0answers
9 views

Search result page with tabs and ajax pagination

I need to create a results search page with those characteristics: The page will have different tabs (like the bootstrap ones so no page reload), each tab will only shows the relative content type. ...
0
votes
0answers
8 views

Result count mismatch on search api autocomplete

We are using search api module and search api solr as databse server. We created result page using views and it has expose form. And in the expose form, we enable autocomplete. The problem is we ...
0
votes
0answers
17 views

Prefilter facet using URL

We have added facet_categories to our Articles page which is a view page with the path url of /articles. Facet_categories is setup to be the Articles->Category field (which is a taxonomy term). ...
0
votes
0answers
19 views

How to “link” Views exposed filter (fulltext search) with Facet API block (on a specific field)?

Using Drupal 7.67, Search API, Search API Database Search, Views and Facet API. I have built a search engine page with Views and Search API (with a server linked to the Drupal database tables). Two ...
0
votes
0answers
23 views

Drupal facet search exclude filters

i have a situation with Search Facet and some excluded taxonomies from the filters on Drupal 7. Here is my scenario content is tagged with tags - taxonomies on the user profile, there is "Denied tags"...
-1
votes
0answers
14 views

How to get exact matches on top of search results?

I'm using search api with solr for drupal 8. I've added title field to index and gave maximum boost. Problem is when I search a keyword, exact match is not at the top of the results. For example: ...
0
votes
0answers
11 views

Search API with Solr won't display excerpt

I am creating a search results page using Search API with a Solr backend provided by Pantheon. I cannot get the excerpt to appear in the view-based results page. I have turned off all processors for ...
0
votes
1answer
19 views

Issue with taxonomy term search in Views

I have a View that uses "Search Terms" to search nodes of the content type "Products". I added a new taxonomy term field to the Product nodes, and then added that field to the View. When I use the ...
0
votes
1answer
10 views

Searching entity reference field value with Search API

I am using Seach API, Solr Search modules in my website for searching. I've created an index, say 'Blogs index', I've selected blogs content type to index Fields - title, body, Author are added to ...
0
votes
0answers
17 views

Core Search Names with Wildcards

I have a module that creates a custom content entity for staff members and a search page for the entity. The current search module uses an advanced search with fields that can use exact matches, but ...
0
votes
0answers
8 views

Sort views results by context

Background I have a global site search powered by Search API and Solr. This site search returns a mix of multiple content and file types. Some of these content types have a region taxonomy. Content ...
0
votes
1answer
33 views

Drupal 8 & Solr 8.1: No search results, error: “The datasource with ID '' could not be retrieved for index…”

I have Drupal 8.7.1, Solr 8.1. My Solr Server is running and my content is indexed. But I have no results (with a query or without) in my view, and an error: Drupal\search_api\SearchApiException: The ...
1
vote
1answer
46 views

Can I combine multiple “no results behavior” to avoid repetition?

I have a Search API view that has 3 attachments. This is so I can display different content type results with unique layouts. If the user searches something too specific, they'll see the No Results ...
0
votes
0answers
13 views

One pager for a view with multiple attachments

I am making a custom results page for Search API. To achieve this, I have created a View that pulls 4 items and has a pager set. I also have 3 attachment views that display content from a different ...
-2
votes
1answer
26 views

What search tool to use for data living outside of Drupal on the external API? [closed]

I have an external API with Doctors data. Every doctor item will have: Title Location ( geolocation address ) Opening hours Short description Area of expertise Price range On my Drupal 8 website, I ...
0
votes
1answer
19 views

Content Admin Search Tool Drupal 8

As a content admin, are there any feasible ways in Drupal 8 to search the source HTML of certain Text fields across multiple content types. For example, I want to find all nodes that contain <div ...
1
vote
3answers
95 views

How can I provide an autocomplete filter for tags in a Search API view?

I'm working to create a Search API view. I have an exposed filter that's a fulltext search filter. I'd like to expose another filter that works similar to the exposed entity reference, which allows ...
0
votes
1answer
25 views

Facet - default value with search api

I am using content type in Facet. The search result will be having an option to choose the content type to filter the result. I want the search should show the result with particular content-type ...
0
votes
0answers
18 views

How do I avoid a link is closed within a custom text field too soon

I am creating a custom View for my Search API results page. I have many fields added and they are all set to hidden. This allows me to have a custom text field at the end that can have a unique layout....
0
votes
0answers
10 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
18 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
14 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 ...
0
votes
2answers
31 views

Search Nodes by reference field target ID

I have a Node by the Project bundle name. Each Project has a reference field to another entity by the name of Contact, that this contact entity has the Client bundle. I can get the Client target ID ...
0
votes
0answers
12 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
29 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
34 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
15 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
36 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
25 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
36 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
16 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
70 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
15 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
6 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
25 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
20 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
28 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
28 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 ...
0
votes
0answers
36 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
21 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
168 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
72 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 ...