Note that there are some explanatory texts on larger screens.

plurals
  1. POCustomizing how Solr searches a specific field
    text
    copied!<p>I am trying to see if its possible to customize solr to change the way it searches for a specific field.</p> <p>To better understand the context and the question, here is what i want to do - i have 5 fields and all of them will be text fields [dont read too much into the syntax .. ]</p> <pre><code>&lt;field&gt;a&lt;/field&gt; ==&gt; will contain normal text [lazy fox jumps over ..] &lt;field&gt;b&lt;/field&gt; ==&gt; will contain normal text [lazy fox jumps over ..] &lt;field&gt;c&lt;/field&gt; ==&gt; will contain numbers separated by a delimiter [1, 2, 4, 6] &lt;field&gt;d&lt;/field&gt; ==&gt; will contain numbers separated by a delimiter [1, 2, 4, 6] &lt;field&gt;e&lt;/field&gt; ==&gt; will contain numbers separated by a delimiter [1, 2, 4, 6] </code></pre> <p>my query will search against all these 5 fields and the values for the fields c, d &amp; e will also contain numerical values separated by commas.</p> <p>while searching i would like to perform an intersection between the value in the query &amp; the value within the field in the index. How can i do that? </p> <p>=> the other way to look at the problem is that if one of the values in the query field is present in the field within the index, then i should match this document to be returned back. This looks like a simple "OR" search but the values within each field could be in the order of 100's .. so constructing an OR query for that many possible input values wont be pretty i guess. If that scales well, then that could be a possible solution, but was not sure if it will scale well.</p> <p>How can I implement such a customization? - search/query performance is a key factor that will be considered.</p>
 

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