Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To make Solr find documents for word parts, you need to have a look at <a href="https://cwiki.apache.org/confluence/display/solr/Tokenizers#Tokenizers-N-GramTokenizer" rel="nofollow noreferrer">the NGramTokenizer</a> or <a href="https://cwiki.apache.org/confluence/display/solr/Tokenizers#Tokenizers-EdgeN-GramTokenizer" rel="nofollow noreferrer">the Edge NGramTokenizer</a>. As you are required to match parts of the word within the middle of it, you should have a look at the NGramTokenizer. If the start and end of the word would do, the EdgeNGram would be favourable, as it is smaller in index terms.</p> <p>A good sample is found here on SO within the question <a href="https://stackoverflow.com/questions/1974394/apache-solr-search-part-of-the-word">Apache solr search part of the word</a>.</p> <p><strong>Why Indexing over query time?</strong> </p> <p>Lucene and as such Solr are not meant to do searches with leading wildcards. So even search for <code>*foo</code> is likely to cause bad performance. Not to mention <code>*foo*</code>. You can read this up in <a href="http://wiki.apache.org/lucene-java/LuceneFAQ#What_wildcard_search_support_is_available_from_Lucene.3F" rel="nofollow noreferrer">the FAQs 'What wildcard search support is available from Lucene?'</a></p> <blockquote> <p>Leading wildcards (e.g. *ook) are <strong>not</strong> supported by the QueryParser by default. As of Lucene 2.1, they can be enabled by calling QueryParser.setAllowLeadingWildcard( true ). Note that this can be an expensive operation: it requires scanning the list of tokens in the index in its entirety to look for those that match the pattern. </p> </blockquote> <p>In the SO question <a href="https://stackoverflow.com/questions/11766351/understanding-lucene-leading-wildcard-performance">Understanding Lucene leading wildcard performance</a> is a more detailed write up on this topic.</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.
 

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