Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your problem is well suited to a document-oriented store such as Lucene. For example you can design a schema such as</p> <p>Type<br> Variety<br> Color<br> Origin DateSold etc :</p> <p>Then you can write a Lucene query such as Type:Fruit AND Color:Green. You can also build nested queries such as (Fruit:Straberry AND Color:Deep Red) AND NOT Origin:Spain.</p> <p><a href="http://lucene.apache.org/" rel="nofollow">Apache Lucene</a> is a Java library with portts available for most major languages. <a href="http://lucene.apache.org/solr/" rel="nofollow">Apache Solr</a> is a full-fledged search server built using Lucene lib and easily integrable into your platform-of-choice because it has a RESTful API. </p> <p>BTW Solr has something called faceting which lets the user filter results using each of the criteria above. So user types fruit into search box and then gets results back.</p> <hr> <p>Type: - Fruit (109) - Nut (99)</p> <p>Origin: - Spain(32) - France(39)</p> <p>Color: - Red (22) - Deep Red(45)</p> <hr> <p>Clicking on each of the facets filters the results with the intersection. So if you want a more user-friendly interaction model, faceting/filtering is much easier, than getting users to type extensive Lucene queries.</p> <p>Update: You might still need to do some lexical parsing if you wish to let users type natural language queries and break it down, but given the tremendously difficult challenge, my suggestion would be to use the simple &amp; powerful faceting approach. Hope that helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload