Questions tagged [search]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Search Results not working as expected

I have a search results page set up where there are a number of parameters in the query string used to filter results. I've got 3 out of 5 of these working and am stuck on the final 2. My full ...
1
vote
1answer
23 views

How to search based on a Multi select category field in Craft 3?

I have a blog section with multi select categories. I want to filter all the blogs based on that multi select categories in the website. When I tried .search('category:ui-ux OR category:web-designs')...
0
votes
0answers
13 views

Add additional entry fields to backend search

The search field in the craft backend entry section searches the title and slug field by default. Is it possible to add custom entry fields to this search function (in my case e.g. a custom item ...
1
vote
2answers
30 views

Frontend Form Search Users based on Tags

Context: I'm trying to build a search form that will filter users based on Name, Skills and School. Users who have any of the search criteria should appear in my results. Name Is a fuzzy keyword ...
0
votes
0answers
14 views

Apply search filter in Element API

I have managed to build the search filter structure at the twig, but I get stuck when try to convert this structure in element API, {% if craft.request.getParam('query') %} {% set keyword = craft....
0
votes
0answers
19 views

Graphql total results / pageinfo when searching with pagination

I'm trying to build something to search my data that is stored in Craft with graphql. To make pagination work I want to know how many results there are in total. I'm doing a query like this: query($...
0
votes
0answers
26 views

Entries search parameter for date value in matrix field no longer working in Craft 3

We have a large festival events site where each performance is stored in a matrix field called dates which uses a single block which has a datetime field (date only). So if an event is on 3 different ...
0
votes
0answers
19 views

Search for category and title in Element API for Jquery Autocomplete

I'm working on the search Autocomplete based on this article, http://craftsnippets.com/articles/search-autocomplete-component-for-craft-cms Besides the title, I want to search within the category too....
0
votes
0answers
15 views

How to search for certain links in Craft backend?

There are a few bad links in my craft site, pointing to some docs in another wp-content site. How do I search for them? I've seen https://docs.craftcms.com/v3/searching.html#supported-syntaxes but ...
0
votes
0answers
21 views

Best way to display relevant matrixblock fields when doing a sitewide search?

I'm building a custom search results page which returns not only the entries that contain the search query (searchQuery), but also, the actual text/content in which the search query was found. That ...
0
votes
0answers
32 views

Optimising search query

I was wondering if there is a better way to do a query like this, it takes a long time to execute and I know setting the parent variable is where there's a problem but am not sure of an alternative ...
1
vote
1answer
16 views

Setting a field search variable after main entries variable changes values

Kind of hard to explain but here's an example: {{entries.all()|length}} {# outputs 88 #} {% set hasTopic = entries.search('dataTable_topic:*').all() %} {{entries|length}} {# outputs 7 #} How can I ...
0
votes
0answers
24 views

Craft search using criteria with related

In the element API following has been defined. $criteria = [ 'section' => $settings['section'], 'limit' => $settings['limit'], 'offset' => $settings['limit'] * ...
2
votes
1answer
36 views

Craft's control panel search function returning inconsistent results

When I search for titles of entries in the Craft control panel, I get odd results: I have an entry called Fake Story about the Economy. If I search for that exact title, I get no results. If I ...
1
vote
2answers
38 views

Is it possible to change the default search result order (CP)?

Craft version: 3.3.19 Is it possible to set default order for CP entry search results? The default is search score but for instance for blog entries, news, etc. the date of the entry is usually more ...
0
votes
0answers
51 views

How does “Use this field's values as search keywords” work with a Matrix field?

I'm fine-tuning a search results page and have noticed that "Use this field's values as search keywords" is included both on the matrix field itself, and within each block type / sub-field. I ...
0
votes
0answers
81 views

Craft and Algolia

I am trying to implement Algolia into Craft 3 and am having a few headaches. I am using scout to update my indexes which seems to be working as expected and am using the instantsearch.js ...
2
votes
1answer
33 views

Excluding specific field value from search

I want to find all entries that match the title field where excludeFromSearch != 1 (is false). {% set query = 'and excludeFromSearch not 1 and ' ~ 'title:"' ~ "myValue" ~ '"' %} {% set results = ...
0
votes
0answers
27 views

Manual Search Index

Any time after i use import with Feed me plugin Craft run updating search index, it takes so long time. For example in my new import have 2-3 articles, updating start index all my entries, i have ~50k....
1
vote
1answer
19 views

How to handle search results that point to a page of aggregated entries?

I have a few pages in my site that aggregate information, for example, a single awards page that gets all the entries in an awards channel. Single awards entries don't have their own URLs. How do I ...
0
votes
0answers
27 views

Filter Super Table Rows by Date Field

I have a Super Table field called locationPricing with a date field inside it called expiration. I want to only display the Super Table rows where the expiration date has passed. Here's what I've ...
1
vote
0answers
18 views

Search if Super Table Field Has Rows

I have a section with a super table field, and I only want to display entries in that section if the super table field has rows (so basically a "not empty" search). How do I do this? I tried using the ...
0
votes
0answers
21 views

Display Multiple Sections With Different Filters

I have one section called webinars where the entries work like events so there can be pending, live, and expired entries. I have another section called resources which are more standard entries where ...
1
vote
2answers
32 views

Blank Screen on Site Search for some Search Terms

We are getting a really odd result when doing certain site searches. The search function loads a completely blank page when we search for the word Anaerobic; Looking at the source some of the ...
0
votes
0answers
51 views

Advanced Entry Queries

I'm looking to write advanced nested search queries in Craft. For example, below I'm looking to find results that have a featuredContent value of 1 and an endDate after today or empty. In psuedo code,...
1
vote
1answer
100 views

CraftCMS: Search entries by title in CMS

In the CraftCMS admin page at /admin/entries/, there is a search bar at the top: This search bar appears to only search the Body field of Entries. Is it possible to make this search bar match ...
1
vote
2answers
36 views

Search question: dot (period) and partials

We have a job inventory where the jobs are being saved as entries. When searching against jobs by keyword we search against two fields: the title and a job description field. However we are ...
0
votes
0answers
17 views

Unexpected search results when search with two category fields

I am getting unexpected results when I search for a Commerce product. Let's say I have a product that has category fields call 'Sport' And 'Award Type'. I have a product that has Football & ...
1
vote
1answer
749 views

“Updating search indexes” message in admin sidebar

I'm noticing the following error in my admin sidebar: If I try to retry it just fails again. I can't see anything obviously failing in my logs. I'm not sure if this is related to the queue, but if I ...
1
vote
1answer
53 views

Searching for item SKU in Commerce orders

I'm trying to show some Commerce 2 order information on the front-end. I can't work out the correct syntax. I'm trying to list orders that include a specific product. I have orders for item SKU "...
1
vote
2answers
44 views

Issues with Craft Commerce [closed]

We have a dutch website build with Craft CMS and for the webshop Craft CMS Commerce. This has been done by a design company. We don't receive any orders and I am wondering if the whole process is okay....
1
vote
1answer
55 views

How to make a multiple route?

Can't figure out how to create a dynamic route for the categories in this format: site.com/news/category-1-and-category-2-and-category-3 That would bring the results from these slug categories. ...
1
vote
0answers
98 views

How to exclude a Matrix block from search?

I'm using a Matrix field as a content builder, allowing the editor to freely create content blocks, titles, images, etc, etc. All of which is content that is required to be searched. But also included ...
1
vote
1answer
332 views

Rebuild Search Indexes timing out

After some issues with our host, our site has returned - but the search function hasn't. Any search on either back or front end brings zero results - when the entries which fit the criteria do exist....
2
votes
2answers
44 views

Searching a subset of fields

I have a section in Craft that has 36 fields, and I want to: set entries = craft.entries.section(sectionName).search(searchCriteria).all() where 'searchCriteria' searches only 6 of the 36 fields. ...
1
vote
2answers
98 views

Get entries after a certain time

I am trying to get all entries from my events section in Craft 3 that occur after 17:00. My current code is: {% set events = craft.entries.section('events').eventStartTime('>= ' ~ '17:00'|time )....
3
votes
1answer
155 views

How to limit Expanded Search (plugin) query results for pagination?

I'm using the Expanded Search plugin to display results of the search query with an excerpt of the text matching the query for each result. I want to limit the results to 10 per page, using pagination....
1
vote
2answers
119 views

Search query for entries doesn't seem to work correctly

In my project I have a tickets which are edited in multiple steps where each step has it's own front end for. Now, of course. to continue editing an ticket I am required to fetch that exact ticket. ...
1
vote
2answers
128 views

how to search for entries where a custom field is either not present or is empty

Some of my entries have the optional plaintext field myCustomField. I want to retrieve all entries except those where myCustomField is filled out. I can get all entries that have an empty ...
2
votes
1answer
211 views

How to exclude certain fields from .search()

I have an event section in my website with a couple of fields on the entries and one of them is a "related events" field where I can select a other event entries to be shown at the end of the page. I ...
1
vote
0answers
348 views

Element API SearchQuery to search for value inside child-entries

I currently try to use the Element API to build a search. Unfortunately I'm kind of stuck. I have a baseEntry, that has a field that references entries (let's call them subEntries) of the section ...
3
votes
0answers
145 views

Search weighting

Is there a way to control the weighting of certain fields in Craft when using search in the front-end? I have a Products Channel which I am trying to search against and I want to be able to boost ...
1
vote
1answer
508 views

Using multiple 'search' parameter values to filter entries

I'm trying to filter entries down based on keywords and also if they have selected a letter that matches the first letter of an entry title on Craft 3. So far I have this: {% set keywordParam = ...
1
vote
2answers
378 views

Search products and entries with pagination

Is there any way of searching both entries and products at the same time? Wanting a single search on the site which will return all entries and products containing the searched for phrase. Looked at ...
1
vote
1answer
40 views

Is it possible to search an asset filename stored on a remote Amazon S3 volume?

I'm successfully using the .search element attribute to search asset filenames stored locally. {% set mediaExists = craft.assets.folderId('6').search('filename:' ~ vLogID|slice(0, 5)) %} Is it ...
2
votes
2answers
181 views

Query Craft CMS Table Field for exact values

Am I correct in saying you cannot search for specific text in a table field. e.g. Table Fields Might hold the following data: SKU1 SKU2 SKU3 SKU33 I then want to search for items that only return ...
2
votes
0answers
400 views

Searching for Multiple Categories and Tags

I've been pulling my head for the past day on how to filter products with multiple categories. After a long search, I found and implemented on my project, Advanced Search with tags and categories It ...
1
vote
1answer
39 views

How can I make related entries and globals part of the search considerations?

How can I make related entries and globals part of the search considerations? So I have a website search bar that searches the whole website. Within some jobs pages there are some global elements ...
2
votes
2answers
742 views

Filter entries by Field value using a variable

How do I filter a list of entries by the value of a field using the value of a variable? e.g. {% set location = block.locationVacancies %} {% set entries = craft.entries.section('careers').search('...
0
votes
0answers
142 views

How to exclude some fields from the searchindex using the RegisterElementSearchableAttributesEvent event?

Context I had big issues on a Craft 2 multilingual site with dozens of thousands of entries that were using Matrix fields. The site had become extremely slow (almost unusable), especially when ...

1
2 3 4 5 6