Questions tagged [search]

The tag has no usage guidance.

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
126 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
372 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
148 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
373 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
17 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
1answer
80 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
0answers
84 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
303 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
345 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
34 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
349 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
127 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
413 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
153 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
25 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 ...
0
votes
0answers
21 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
48 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
59 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
23 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
22 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
17 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
39 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
16 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
30 views

How can I search for entries with precision in my module?

I'm working on an autocomplete Vue component for one of my Craft projects. It's very simple at the moment, all I am trying to do is have my component send a search value from the user to a controller. ...
0
votes
0answers
31 views

How can I overwrite the search page within a plugin?

My first day with Craft. I want to create a plugin that will provide a Product Query (collection, Craft Commerce) based on some 3rd party search (like Algolia). How can I overwrite the route search?...
0
votes
0answers
128 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
135 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. ...