Questions tagged [search]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
64 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 ...
3
votes
0answers
158 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 ...
2
votes
1answer
124 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 = ...
1
vote
1answer
21 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 ...
1
vote
0answers
39 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 ...
1
vote
2answers
36 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
180 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
167 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
45 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 ...
1
vote
1answer
2k 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
177 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
54 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
72 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
167 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
597 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
56 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
270 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
283 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
152 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
382 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
271 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
506 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 ...
4
votes
0answers
317 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
745 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
656 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
85 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
389 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 ...
3
votes
0answers
536 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
46 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
2k 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
211 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
vote
1answer
125 views

Search return wrong result with special character like æ ø å in Craft 3

I had created search in Craft 3, but it returns wrong result when I enter some special characters in it, for example æ ø å. Looking for the solution.
1
vote
1answer
567 views

Search using Slug as query parameter

I created Search that uses entry slug, but it fails if the slug has more than one dash "-" in it. Has anyone come across this and/or have any ideas for getting around it? I need to use the slug ...
4
votes
1answer
2k views

How to fetch entries in custom plugin Craft 3?

I am creating custom search based on entries. I need to fetch entries in custom plugin.
1
vote
1answer
108 views

Search in checkbox field with pagination

It seems like this should be a simple thing, but it's evading me... I have a checkbox field in my entry named "articles_categories". Just to clarify, these are not actual categories -- they are ...
2
votes
2answers
548 views

Search all Sites on Multisite

I have a multisite setup and and a search bar at the top of each site. Currently it just searches within that site: {% set theSite = craft.app.request.getSegment(1) %} {% paginate craft.entries....
2
votes
2answers
525 views

Search with string, entry type and category

So I have been asked to build a resource center just like hubspot's. (insert rolleyes here) https://www.hubspot.com/resources You can click into a type, and then click at topic and it creates a url ...
1
vote
1answer
35 views

Search for href parameter in rich text field

I'm trying to find using craft search "bitly" urls in body rich-text field in articles. It's for generation of list of popular articles. So if query is a link (like "http://bit.ly/1eZFQMY") search ...
3
votes
1answer
65 views

Craft 3: Search in 15000 entries

I have a low-budget project where would like to migrate an academic website to Craft. The website contains 15000 proverbs about women in different cultures that can be searched, (http://www....
2
votes
1answer
82 views

ANDing search terms

I have implemented the standard search form at: https://docs.craftcms.com/v2/templating/search-form.html and added fuzzy searching: {% set entries = craft.entries({ search: { query: query, ...
1
vote
1answer
443 views

Paginate search results after combining sections in Craft 3

I have installed the Calendar plugin and I'd like to search across event entries from this plugin and from channel/section entries across the base Craft 3 site. However, I am getting the usual Limit-...
2
votes
1answer
592 views

Search Through Matrix Field

Trying to search through a Matrix field, currently I am using conditionals to accomplish this, but if it's faster would like to limit the results to only what I need. {% for row in entry.matrixField....
0
votes
1answer
225 views

ElementAPI : Excluding terms from search criteria

I am trying to exclude terms in my search when using the element api. I have successfully managed to include terms and search them by fields in my entries. I would now like to be able to exclude ...
0
votes
2answers
377 views

Searching Number Field To See If It Falls In A Range

I'm building a property search form and searching by different types of fields in Craft. Here are my questions: How can I get a list of the unique cities in the entries section to declare my form ...
1
vote
1answer
1k views

Search Multiple Fields Same Parameter

I'm building a search form with filters. This is one of the filters. I would like to use the parameter "agent" and have it search a text field called "listingAgent" and "coListingAgent" to check for a ...
0
votes
2answers
939 views

Filtering search with checkboxes multiple param querystring

I have a series of checkbox like so: <fieldset data-role="controlgroup"> {% for option in craft.fields.getFieldByHandle('area').getFieldType.options %} <input type=...
5
votes
1answer
1k views

Craft 3 Multi Category and Field Search

Looking for the solution to searching entries in one section that are related to multiple categories and match number field criteria. This is for a used auto website. Categories: Make/Model/Trim: ...
0
votes
0answers
56 views

Search results missing items

I did a straight lift of the Craft3 Search Form example. It "works." There are no errors. But, it is not showing all results. I can type F and it works. I type F- and it works. I type F-15 and it ...
1
vote
1answer
52 views

How to get a result from search even if the search query contains a part of title?

Suppose there are three Entries: Entry One Section One Channel One I need to get Section One in result when I search Sect. Is this possible ? I am using {% set entries = craft.entries.search(query)...
2
votes
1answer
284 views

Smart Map - How to search by a field in address?

I have entries using the Smart Map address field. I need to get just the entries that have a combination of city and state (city = "Beverly Hills" AND state = "CA"). I am currently ...

1
2
3 4 5
7