<p>You don't really need a "search" plugin for that. Craft has a brilliant Query Builder so it can be done really easily. Furthermore there is the <code>Element Api</code> which provides a JSON endpoint. </p>

<p>I suggest you to read the docs about <a href="https://craftcms.com/docs/searching" rel="nofollow noreferrer">Searching in Craft</a> and about <a href="https://github.com/craftcms/docs/blob/v3/en/templating/querying-elements/index.md" rel="nofollow noreferrer">Queries in Templates</a>.</p>

<p>If you wan't to search for entries containing these words, a specific <code>length</code> and a <code>threadSize</code> you could do</p>

<pre><code>{% for entry in craft.entries.threadSize('and, &gt;0, &lt;80).length('and, &gt;10, &lt;100).search({
    query: 'socket head screws',
    subLeft: true,
    subRight: true                
}).limit(10).all() %}
    &lt;article&gt;
        &lt;h1&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h1&gt;
        &lt;a href="{{ entry.url }}"&gt;Continue reading&lt;/a&gt;
    &lt;/article&gt;
{% endfor %}
</code></pre>

<p>That's basically it.</p>

<p>For advanced searches I would recommend to create a custom plugin. It's totally easy to search things in Craft so the need of a "default" plugins is not really high and it's faster to create a custom plugin than to find one that fits all your specific needs.</p>

CC BY-SA 3.0
2018-03-11T20:20:35.750Z
2018-03-11T20:32:10.710Z
2018-03-11T20:32:10.710Z
Robin Schambach
<p>A couple questions...</p>

<p>1) How do these dynamic searches work? A excellent example is found at <a href="https://www.mcmaster.com/#standard-socket-head-screws/=1bxdrjl" rel="nofollow noreferrer">McMaster Carr website</a></p>

<p>2) Is there any search plugin like that for Craft? I did not see any.</p>

<search><craft3>
Search with dynamic results
# Search with dynamic results

(Asked by: username_0 on 2018-03-11)

A couple questions...

1) How do these dynamic searches work? A excellent example is found at [McMaster Carr website](https://www.mcmaster.com/#standard-socket-head-screws/=1bxdrjl)

2) Is there any search plugin like that for Craft? I did not see any.

**Tags:** search, craft3


---

## 1 answers

### Answer by username_1 on 2018-03-11. Score: 1

You don't really need a "search" plugin for that. Craft has a brilliant Query Builder so it can be done really easily. Furthermore there is the Element Api which provides a JSON endpoint. 
I suggest you to read the docs about Searching in Craft and about Queries in Templates.
If you wan't to search for entries containing these words, a specific length and a threadSize you could do
{% for entry in craft.entries.threadSize('and, >0, <80).length('and, >10, <100).search({
    query: 'socket head screws',
    subLeft: true,
    subRight: true                
}).limit(10).all() %}
    
        {{ entry.title }}
        Continue reading
    
{% endfor %}

That's basically it.
For advanced searches I would recommend to create a custom plugin. It's totally easy to search things in Craft so the need of a "default" plugins is not really high and it's faster to create a custom plugin than to find one that fits all your specific needs.


---

