Hi Chris,

Thank you for taking the time to assist. Here's both the field and
fieldtype definition:

<field name="class" type="class" indexed="true" stored="false"
required="false" multiValued="true"/>

<fieldType name="class" class="solr.TextField"
positionIncrementGap="100">
    <analyzer>
        <tokenizer class="solr.WhiteSpaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
    </analyzer>
</fieldType>

And here's a simplified set of params passed to solr  (which still
causes the issue to show up):

q=class:510
defType=edismax
fl=*,score
q.op=AND
mm=100%
tie=0.01
start=0
rows=10
sort=score desc
qf=class^1.0

The parsed query (from debug): (+class:510)/no_coord

Scoring debug for one of the unexpected items:

4.5180607 = (MATCH) weight(class:510 in 1394980) [DefaultSimilarity],
result of:
  4.5180607 = fieldWeight in 1394980, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    7.228897 = idf(docFreq=2894, maxDocs=1468332)
    0.625 = fieldNorm(doc=1394980)

Kind regards,

Phil.

-----Original Message-----
From: Chris Hostetter [mailto:hossman_luc...@fucit.org] 
Sent: 08 March 2013 01:38
To: solr-user@lucene.apache.org
Subject: Re: Search term matching on part of a token, not the whole
token


:                 <fieldType name="class" class="solr.TextField"
        ...
: When performing a search against the field (using the edismax parser)
a
: search like:
        ...
: class:100

You shown us he fieldType "class" but you haven't provide any info about
the *field* named "class" -- please verify that it uses fieldType
"class"

You also didn't provide any details about how your edismax parser is
configured (ie: what kinds of defaults and query params are you using)

the debugQuery=true output showing what the final parsed query looks
like is also kind of important here.

https://wiki.apache.org/solr/UsingMailingLists

-Hoss


This email and any attachment to it are confidential.  Unless you are the 
intended recipient, you may not use, copy or disclose either the message or any 
information contained in the message. If you are not the intended recipient, 
you should delete this email and notify the sender immediately.

Any views or opinions expressed in this email are those of the sender only, 
unless otherwise stated.  All copyright in any Capita material in this email is 
reserved.

All emails, incoming and outgoing, may be recorded by Capita and monitored for 
legitimate business purposes. 

Capita exclude all liability for any loss or damage arising or resulting from 
the receipt, use or transmission of this email to the fullest extent permitted 
by law.

Reply via email to