Questions tagged [search]

The tag has no usage guidance.

37 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
161 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 ...
2
votes
0answers
419 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 ...
2
votes
0answers
155 views

Search on entries by Multi-Select field

I saw a potentially similar question, but I'm wondering if mine is simpler. I need to search for entries based on a match of a Multi-Select field. So, say if a user has a Tier of "TB" and an entry ...
2
votes
0answers
375 views

Score order in search results

I'm building a site and getting some odd search results. For example, searching against the term 'Gibraltar' returns an entry with four mentions of the term in it's content first, whilst an entry ...
1
vote
0answers
62 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 ...
1
vote
0answers
19 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
0answers
107 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
0answers
369 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 ...
1
vote
0answers
402 views

Category counts for query results

I'm trying to display results from a search. I want to display the categories represented by the search results and the entry count for that category. Think of how Amazon's "refine results" sidebar ...
1
vote
0answers
36 views

Commerce filter with width, height and length with tolerance

Hope you guys can help. I need to create a search feature on a craft commerce site that will allow the user to search for products in this principle: Product Type Width +- value height +- value ...
1
vote
0answers
370 views

Debugging Craft search query: differences between craft.log and dump()

I'm new to Craft, coming over from ExpressionEngine to start doing maintenance on an agency-built Craft site, and I have what may well be a very basic question... please be gentle. We have a page ...
1
vote
0answers
28 views

Is it possible to list all searches with at least one result that were made on a site?

I want to submit a XML sitemap to Google with frontend searches, in order to boost the SEO for a site. This is the approach I would take. But then, I might be very naive and there's other techniques ...
1
vote
0answers
149 views

Range Facets with SearchPlus and Algolia

Currently using Algolia with SearchPlus on my setup. Unfortunately some data is quite clunky e.g. Prices with 23.93 48.12 etc. What I'm wanting to do is have range pricing/grouping where by I can ...
1
vote
0answers
133 views

Combined searches and filters with a Matrix

I am fairly new to Craft but have managed to build a combined search feature that users can filter from dropdowns. I used this as a guide and it works great: https://webstoemp.com/blog/combined-...
1
vote
0answers
64 views

Search syntax for searching matrix fields (in the CP)

Looking for a way to search (in the CP), for elements where a matrixField is empty or not. This seems to work: - with matrix rows: myMatrixField::* - without matrix rows: -myMatrixField::* However, ...
1
vote
0answers
27 views

Preserve Structure while searching for entries?

I have Structure type section and each of the entry contain at least 10 level 1 entries. Is there a way to preserve the structure of the entries while filtering/searching entries? What I mean by this ...
1
vote
0answers
418 views

Advanced filtered search: Matrix fields and arrays

Having scoured the forums for similar questions of which there are a few, I'm still struggling to figure out my specific usecase. I have 4 filters and a search box (which searches a custom tag field) ...
1
vote
0answers
156 views

Searching multiple Super Table columns against an established value

I currently have three global Super Table fields, global.berkeleyDeliveryMatrix, global.oaklandDeliveryMatrix and global.sanFranciscoDeliveryMatrix, all of which have a plaintext column in them titled ...
1
vote
0answers
55 views

Searching for HTML markup in Rich Text fields

It seems HTML markup (tags, classes, etc) is excluded when searching (at least in the CP/Entries page). Any way around this?
0
votes
0answers
13 views

How to search/filter in CP by date range?

Is there a way in the control panel to list all entries with a date field between two dates? For example, last updated between 12/16/2019 and 2/15/2020. Interested in doing this for both automatic ...
0
votes
0answers
35 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 ...
0
votes
0answers
16 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 ...
0
votes
0answers
16 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
32 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
25 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
22 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
25 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'] * ...
0
votes
0answers
95 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 ...
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....
0
votes
0answers
31 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
62 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,...
0
votes
0answers
18 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 & ...
0
votes
0answers
151 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
138 views

Why isn't search working on the live page?

I have search working on my local .dev site. It does not work on my live hosted site. There are no error messages; it just reloads the home page. Here is the search code in my site template. ...