Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-11T20:20:35.750Z
Answers.LastActivityDate: 2018-03-11T20:32:10.710Z
Answers.LastEditDate: 2018-03-11T20:32:10.710Z
Answers.UserDisplayName: Robin Schambach
Body: <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>
  
Tags: <search><craft3>
Title: Search with dynamic results
ThreadText: # 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](https://craftcms.com/docs/searching) and about [Queries in Templates](https://github.com/craftcms/docs/blob/v3/en/templating/querying-elements/index.md).
  
  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() %}
      <article>
          <h1><a href="{{ entry.url }}">{{ entry.title }}</a></h1>
          <a href="{{ entry.url }}">Continue reading</a>
      </article>
  {% 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.
  
  
  ---
  
  