maybe you have make a misunderstanding about what i say,

another example:

the keyword "oneworldonedream" in myself analyzer will be  analyzed about
four token:
one world one dream

when i use myself analyzer in solr,  i input "oneworldonedream",  solr give
the follow result:

 
*-*<http://129.0.0.42:8080/solr/select?indent=on&version=2.2&q=ibm%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&debugQuery=on&explainOther=&hl.fl=#>
<lst name="*debug*">
 * * <str name="*rawquerystring*">oneworldonedream</str>
 * * <str name="*querystring*">oneworldonedream</str>
 * * <str name="*parsedquery*">*PhraseQuery(title:"one world dream")*</str>
 * * <str name="*parsedquery_toString*">*title:"one world dream"*</str>
 * * <lst name="*explain*" />
 * * <str name="*QParser*">*OldLuceneQParser*</str>
...................

please be careful with the result: *PhraseQuery(title:"one world dream")  *
**
this is not what i want , i want to get the query:  *title:one title:world
title:dream*
how can i do this?
did solr have a configuration about this?


2008/11/24 Yonik Seeley <[EMAIL PROTECTED]>

>  On Mon, Nov 24, 2008 at 3:55 AM, finy finy <[EMAIL PROTECTED]> wrote:
> > hello everyone:
> >
> >      i use solr 1.2,  i find a problem about solr1.2,
> >
> >   when i search some keyword, i use myself analyzer,  i find that solr
> > consider my terms as PhraseQuery,
> >
> >  for example,solr parser's result is: PhraseQuery( title:"i am good
> man"),
> > but i want to get the query: title:i  title:am title:good title:man
>
> If Solr is producing a phrase query, then you hust have surrounded the
> words in quotes in the query string.  To group terms in a field try
> the following:
>
> title:(i am good man)
>
> -Yonik
>

Reply via email to