Note that the query analyzer output is NOT doing query _parsing_, but
rather taking the string you passed and running it through the query
analyzer only. When using the default query parser, Inte* will be a
search for terms that begin with "inte". It is odd that you're not
finding it. But you're using a pretty old version of Solr and quite
likely something here has been fixed since.
Give Solr 1.4 a try.
Erik
On Jan 27, 2010, at 12:56 AM, ashokcz wrote:
Hi just looked at the analysis.jsp and found out what it does during
index /
query
Index Analyzer
Intel
intel
intel
intel
intel
intel
Query Analyzer
Inte*
Inte*
inte*
inte
inte
inte
int
I think somewhere my configuration or my definition of the type
"text" is
wrong.
This is my configuration .
<fieldType class="solr.TextField" name="text">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter catenateAll="0" catenateNumbers="0" catenateWords="0"
class="solr.WordDelimiterFilterFactory" generateNumberParts="1"
generateWordParts="1"/>
<filter class="solr.StopFilterFactory"/>
<filter class="solr.TrimFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" expand="true"
ignoreCase="true"
synonyms="synonyms.txt"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter catenateAll="0" catenateNumbers="0" catenateWords="0"
class="solr.WordDelimiterFilterFactory" generateNumberParts="1"
generateWordParts="1"/>
<filter class="solr.StopFilterFactory"/>
<filter class="solr.TrimFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/>
</analyzer>
</fieldType>
I think i am missing some basic configuration for doing wildcard
searches .
but could not figure it out .
can someone help please
Ahmet Arslan wrote:
Hi ,
I m trying to use wildcard keywords in my search term and
filter term . but
i didnt get any results.
Searched a lot but could not find any lead .
Can someone help me in this.
i m using solr 1.2.0 and have few records indexed with
vendorName value as
Intel
In solr admin interface i m trying to do the search like
this
http://localhost:8983/solr/select?indent=on&version=2.2&q=intel&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=
and i m getting the result properly
but when i use q=inte* no records are returned.
the same is the case for Filter Query on using
&fq=VendorName:"Intel" i get
my results.
but on using &fq=VendorName:"Inte*" no results are
returned.
I can guess i doing mistake in few obvious things , but
could not figure it
out ..
Can someone pls help me out :) :)
If &q=intel returns documents while q=inte* does not, it means that
fieldType of your defaultSearchField is reducing the token intel into
something.
Can you find out it by using /admin/anaysis.jsp what happens to
"Intel
intel" at index and query time?
What is your defaultSearchField? Is it VendorName?
It is expected that &fq=VendorName:Intel returns results while
&fq=VendorName:Inte* does not. Because prefix queries are not
analyzed.
But it is strange that q=inte* does not return anything. Maybe your
index
analyzer is reducing Intel into int or ıntel?
I am not 100% sure but solr 1.2.0 may use default locale in
lowercase
operation. What is your default locale?
It is better to see what happens word Intel using analysis.jsp page.
--
View this message in context:
http://old.nabble.com/Wildcard-Search-and-Filter-in-Solr-tp27306734p27334486.html
Sent from the Solr - User mailing list archive at Nabble.com.