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
-3 votes
1 answer
71 views

Getting the "Solarium @version is too old" error after upgrade

I recently updated a Drupal 9.3 site to Drupal 9.5 and most of the contributed modules were updated to the latest version that supports both 9 and 10 in view of an upcoming Drupal 10 upgrade. On the ...
1 vote
1 answer
1k views

Pagination in search results

I have installed search configuration module to alter pagination on search results. I've set the pager limit in Configuration > Search settings > ADDITIONAL NODE SEARCH CONFIGURATION > RESULTS to 3 (...
0 votes
1 answer
530 views

Showing title keyword in autocomplete

I have just installed search auto complete module,its working fine,but the problem is its showing title before every result like: title: Drupal 7.9 Release tile:Understanding Drupal Here Drupal 7.9 ...
2 votes
3 answers
7k views

How to improve search results filtering on taxonomy

I would like to know the best way to filter drupal search results using taxonomy. I want users to be able to search for particular results from a particular taxonomy..this can be done to refine ...
0 votes
0 answers
30 views

JSON:API does not return relationships with pagination

When I use /jsonapi/index/products?include=field_product_image, it returns image details inside 'included' parameter in the response. When I use /jsonapi/index/products?include=field_product_image&...
0 votes
0 answers
19 views

Facet active status is not showing correctly

Hi I' am using JSON:API Search API and Facet for my headless search page. This is the API endpoint I am using. /jsonapi/index/products?filter[field_tags]=15 I get this response. But in response active ...
1 vote
1 answer
972 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 ...
2 votes
2 answers
381 views

Is there a way to add non indexed fields to a search api view?

I’m wondering if it’s possible to add non-indexed fields to a search API indexed view? I want the standard flags fields to be available on the indexed search view. And I was thinking I could do this ...
1 vote
1 answer
2k views

Solr index fields not showing a field

I have a field within a field collection that I need indexed. It's not showing up in the /admin/config/search/search_api/index/solr_node_index/fields page. I tried using this to try to add it myself, ...
0 votes
3 answers
4k views

How to modify the search index?

There's a search index for the Apache Solr module. However, I don't see any way to change this index. It seems that various fields and items are added to the index without rhyme or reason. If I ...
0 votes
1 answer
1k views

How to add another condition to a specific active facet?

I did try to add a condition using hook_views_pre_execute or hook_views_query_alter, but since Im usiong SearchAPI, theres is no point apparently in using these functions (no $query in ...
1 vote
1 answer
2k views

Search API and Facets API with multilingual taxonomy

I have some taxonomy terms and the settings look like this. All these terms have been translated. After indexing the content with Search API and Facets API, the facets are not shown with translation....
1 vote
1 answer
1k views

How do I enable Backlinks View and What Links Here?

We used the backlinks view in D6, as well as the What Links Here tab for each node. We're now using Commerce Kickstart 2. I don't see that View and it appears that the search_node_links table is ...
0 votes
1 answer
715 views

Not showing clickable links in search results

I'm fairly new to Drupal but have gotten a hang of installing modules and setting up there configuration pages. The company site i'm working on is running on Drupal 7.1.4 and is using Node Search to ...
1 vote
2 answers
835 views

Problems with Search API and Entity Translation

I'm building a two-language website (Ukrainian - main, English - second) with the new Entity Translation approach. This approach seems very promising however it does not support multilingual content ...
0 votes
1 answer
392 views

Search Api display search term in form

How do I display the search term after I have run the search. Here is my form: <input data-drupal-selector="edit-search-api-fulltext" id="edit-search-api-fulltext" placeholder=&...
0 votes
2 answers
763 views

How to display the pager on top and bottom of a custom search results page?

I have used the core Search Page functionality in Drupal 8 to built a search engine on my site. The pager is displayed at the bottom by default. How can i display the pager on the top also? Note: I ...
1 vote
2 answers
81 views

Search API Solr: Correct Field Data Type?

I'm running Drupal core 10.2.1, Search API Solr 4.3.1, and Solr server 9.4.0. I've noticed that some searches aren't finding indexed content and I'm wondering if the field type definition is correct. ...
0 votes
1 answer
1k views

Non-empty string as route parameter

I'm creating a search results page using the Search API. I want to set an url like this: /search/{text} How should i set up my route? It must accept any combination of characters, including non-...
0 votes
1 answer
411 views

Exract all node field values to json including reference entities with value

I am writing a module to export drupal's content to another platform, the module provides a UI to manage content types and their fields to be shared on another platform via API. So far i have managed ...
1 vote
1 answer
557 views

How can I enable search on parts of a word and autocomplete suggestions?

I'm using Search API in Drupal 8. I tried with Search API pages and even views, but I didn't find %like% function query Can I do %like% in Search API or Views?
3 votes
1 answer
2k views

How can I display a paragraph field excerpt in a search result view?

I've spent all day and night battling with Search API (with and without Apache Solr) in Drupal 8. Does anyone know if you can use Search API to index paragraph content and then in a search views ...
0 votes
2 answers
2k views

How to change placeholder title of search box?

I have placed 2 search box in 'node/92' page at two different region one is at header region and another is at content region ,I have to change the placeholder text of both search box as abc and xyz ...
2 votes
1 answer
958 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?
1 vote
1 answer
1k views

Apache Solr Proximity Search and sort by Distance

I wrote a custom module to perform a search of an index I created using Search API and Search API Solr Search. The search is a proximity search that finds the closest locations using a bounding box, ...
1 vote
1 answer
1k views

SearchApiException while retrieving config files of Solr server solr_server server

SearchAPI in Drupal7 with Apache Solr on Jetty was working ok in Windows, however when I moved the installation to Linux, I'm getting this exception in Drupal log: SearchApiException while retrieving ...
4 votes
1 answer
563 views

Is there a way to default sort by date when no search keywords have been used, but default sort by relevance for all searches?

At present, my project has default search pages for sections of the site. They are per-content type. When the user goes the "search page" for the content type, they see a views-generated ...
0 votes
0 answers
45 views

Search api solr - index based on field rather than entity

I have a custom field that has 3 columns and I'm trying to create search page (search_api, solr and view based on search api index to display data) that will perform a search on this field (attached ...
0 votes
1 answer
445 views

Is there a way to change Views base table dynamically?

I have a couple of Search API indexes for different server environments (test, qa, uat, prod) with different configurations. Instead of create 4 views in the admin, I just want to use one, and ...
1 vote
1 answer
760 views

How I can include Commerce SKUs in search result?

How I can include Commerce SKUs in search result? I am using “Search API and Search API Solr” modules. Any suggestions?
1 vote
1 answer
1k views

How do I sort a view by content type?

I use a View to show search results (core Search module). In the view I have grouped the grid on the field "Content type". This works fine, each content type is shown under it's own title. But under ...
2 votes
1 answer
941 views

Group search result by content type

I am using apachesolr on my drupal 6 website for search. Now I wanted to use filter results by content type on search page. At first I was using a panel page as search page. Here I tried to use the ...
0 votes
0 answers
19 views

How do I make a query to my index that includes a hierarchical facet programmatically?

I need to make a query that includes a hierarchical facet. I've already managed to make a query that includes facets. What happens is that I have an index with many objects that are related to a ...
0 votes
1 answer
384 views

How do I allow facets on my full content display page?

I have installed Kickstart Commerce 2. I have been able to allow facet searches on my collection pages, by simply adding collection/* under the "Show block on specific pages" section of the blocks ...
1 vote
1 answer
1k views

Facets with default

Anybody know how to set a default facet value? I have facets set up and working using facet_api blocks alongside a view in a panel. Is there a (hopefully easy) way to set one of the facets have a ...
1 vote
2 answers
1k views

How to retrieve Apache Solr's current search filters?

I'm using Apache Solr Search, Search API and Facet API. Is there a way to retrieve the current search filters being used when using Apache Solr on Drupal? For example: I have a website using facets ...
8 votes
8 answers
13k views

How to replace the search submit button with a Font Awesome character?

I would like to replace the search submit button with a Font Awesome character like the Magnifier (Search Icon) character, and put Search the site inside the search box. How can I achieve something ...
0 votes
1 answer
1k views

Adding a field to a content type for Apache Solr search and Facets

I've got a content type of Journal, and another content type of Article. All of the data associated with the Journal itself is stored on that content type, and not duplicated in the Article; the ...
2 votes
1 answer
2k views

Is it possible to use Apache Solr to search across multiple sites?

I'm completely new to Solr and roughly understand the basic principles of setting up a search engine but not (yet) the specifics. I'm beginning work on a site which will display search results from ...
1 vote
2 answers
594 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
1 answer
470 views

How to limit the words in search api autocomplete suggestion?

I have a requirement to limit the words to show up in row of autocomplete suggestion. Now its showing titles but problem is titles are too long and suggestions are covering entire width of the screen. ...
0 votes
1 answer
383 views

Add condition to specific content type in apache solr

I've installed apachesolr,search api solr and views. I have only indexed article and basic page content type. Then i've added new field "internal use only" as checkbox for article content type. I ...
2 votes
1 answer
894 views

Strange sorting in one facet of Apache Solr Search results

We're using the Apache Solr Search module to allow users to filter search results; for example, if a user searches for Pepsi, they get all results, but along the left of our screen they get facets ...
1 vote
2 answers
1k views

Apache Solr Search proper syntax in url?

Can anyone provide some info on how to properly execute a filtered apache sold search through the url? So far I've figured out that ?fq[]=bundle:type will return a results filtered by that bundle ...
1 vote
2 answers
744 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 ...
0 votes
1 answer
28 views

How to switch template for search results without using views and display modes?

I want to show my Drupal 10 Solr search results in either grid view or list view. I set this up using Views and Display Modes, and I have icons on the page which simply link to the URLs of the ...
0 votes
1 answer
466 views

Why is my view for Solr indexing is not showing any results?

I have installed solr 8.2.0 for drupal 8.7.6. My Solr server and index are enabled and indexed. But when try to search via views, the results are not showing up. Please help me in solving this. My ...
1 vote
2 answers
405 views

Where does redirect from default search to apachesolr_search occur?

We're using the apachesolr_search module on our site. (This is a site I inherited fully coded, so there's tons going on that I'm not intimately familiar with yet.) We have a search block that has been ...
1 vote
1 answer
450 views

Solr multi-select facets occurs bad request error

I faced with a weird problem using apache solr faceting search. While selecting two facet constraints, solr respond with 400 error: "400" Status: null: null HTTP ERROR 400 Problem accessing /...
0 votes
1 answer
797 views

searching and entity references

I have two content types documents and authors. When creating a document a selection list of entity reference's to authors is used to select the author. Searches for the author name find the correct ...

1
2 3 4 5
40