Unanswered Questions

722 questions with no upvoted or accepted answers
8
votes
1answer
716 views

With search_api_solr, how can I apply an significant field based boost when using solr 6.x?

I am using the solr backend for search_api on a drupal 8 site. I have added the value of a taxonomy term reference field (field_promoted_search) to the index. If an item of content has ...
5
votes
1answer
125 views

Programmatically Setting Content Ranking Factors For Drupal Search

I've added a dropdown to Drupal search page interface. I would like for users to be able to select this control to sort results according to Date or Keyword Relevance. I'm able to get the dropdown ...
4
votes
0answers
1k views

Search excerpt with Search API (rendered HTML)

Is it possible to create a search excerpt from the Entity HTML Output (with Search API)? What I did: Activated highlighting and "create excerpt" within my Search index. Added "complete entity view" ...
4
votes
1answer
244 views

Solution for preventing indexing of content types?

I have a custom content type that I simply want to not be indexed by the Drupal search engine. Yes, I can hide it from the search results, but there are hundreds of thousands of these nodes and ...
4
votes
1answer
2k views

Implementing Taxonomy hierarchy in View and Search

I am working on a biology website that needs to make use of Drupal 7's Taxonomy system, for a biological taxonomy. My goal is to allow users to tag all content with related species information, and ...
3
votes
0answers
276 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 ...
3
votes
0answers
807 views

Drupal 8, Paragraphs and search api. No excerpt available with title of node

I've spent all day and night battling with search api (with and without solr) in Drupal 8 Does anyone know if you can use search api to index paragraph content and then in a search views result, get ...
3
votes
0answers
111 views

How to include pages created with Views in a Search API index

I have configured Search API on a site to search all content. It works fine. The only thing I can't work out is how to include pages which are views in the search index. Is the only way to do this to ...
3
votes
0answers
78 views

Custom Storage Fields (Not showing in my index)

namespace Drupal\custom_storage_example\Entity; use Drupal\Core\Entity\ContentEntityBase; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\BaseFieldDefinition; /** * Defines the ...
3
votes
0answers
827 views

How to change the placeholder title of the search box

I created a Drupal 8 website and enabled multilingual modules, so my website is in French, English and Spanish. In the placeholder of the search box the word Search appear for English and is ...
3
votes
0answers
1k views

How do I index custom fields with the search API using elasticsearch?

I see all kinds of tutorials to get apache to index content. Is there any difference in getting elasticsearch to index my new custom field? On the field page I can see my field but when i expand it ...
3
votes
0answers
801 views

How to generate an excerpt for a specific field in Search API Solr?

I created a custom query that displays publications based on keywords entered by user. The query looks into "title", "body" and "author title"(node reference) fields. if(empty($keywords)!=1){ ...
3
votes
0answers
441 views

How to use location distance / proximity filter with facet search api

I am using location, gmap, facet api modules and I have created search page for node with facet api. I want to use distance / proximity filter for facet search but I didn't get distance / proximity ...
3
votes
0answers
2k views

Customizing the search results page with Apache Solr

I have business requirements to do a total overhaul of the Search Results page for our site. Based on the searching i've done so far, I have a few options to adjust the results pulled by the search: ...
3
votes
1answer
2k views

Adding indexed field to Search API query in code

I want to add an indexed field to a Search API query in code. My query currently looks like this: $index = search_api_index_load("default_node_index"); $query=new SearchApiQuery($index); $query->...

15 30 50 per page