Re: DIH - commit / optimize
i use solr for 3 months, and i find some question follow: i check the solr source code, and find it uses lucene's QueryParser to parse user's input querystring for example, a query like this "name:ibmT63notebook" ,solr will parse it like 'name:"ibm T63 notebook"' , it regard this as a PhrazeQuery,so it will use PhrazeQuery. but i want to get a result which include "ibm" and "T63" and "notebook" at any postion. for example ,it should match some sentence like "i have a notebook ,it is t63 of ibm".. but solr doesn't do that,it consider that queryparser as a PhrazeQuery, how can i do that as my mind? thanks, your friend!
Re: DIH - commit / optimize
i'sorry, i am not familiar with the maillist operation. my question is: i check the solr source code, and find it uses lucene's QueryParser to parse user's input querystring for example, a query like this "name:ibmT63notebook" ,solr will parse it like 'name:"ibm T63 notebook"' , it regard this as a PhrazeQuery,so it will use PhrazeQuery. but i want to get a result which include "ibm" and "T63" and "notebook" at any postion. for example ,it should match some sentence like "i have a notebook ,it is t63 of ibm".. but solr doesn't do that,it consider that queryparser as a PhrazeQuery, how can i do that as my mind? 2008/8/18, Shalin Shekhar Mangar <[EMAIL PROTECTED]>: > > Actually we have commit and optimize as separate request parameters > defaulting to true for both full-import and delta-import. You can add a > request parameter optimize=false for delta-import if you want to commit but > not to optimize the index. > > I've updated the wiki. Thanks for pointing it out. > > On Mon, Aug 18, 2008 at 7:33 AM, Norberto Meijome <[EMAIL PROTECTED] > >wrote: > > > Hi again, > > > > I see in the DIH wiki page : > > [...] > > full-import [..] > > commit: (default 'true'). Tells whether to commit+optimize after the > > operation > > [...] > > > > but nothing for delta-import... I think it would be useful , a 'commit' > > (default=true) , 'optimize' (default=false) for the delta-import - these > > should most probably be separate ones, i think. > > > > - for full-import , wouldn't it make sense to split commit + optimize > into > > 2 different options? Granted, if I do a clean=true, i'd probably want > > (need!) an optimize... even then, optimize may be too slow / use too much > > memory at that point in time... ? ( not too sure about this argument..) > > > > cheers, > > B > > _ > > {Beto|Norberto|Numard} Meijome > > > > Never take Life too seriously, no one gets out alive anyway. > > > > I speak for myself, not my employer. Contents may be hot. Slippery when > > wet. Reading disclaimers makes you go blind. Writing them is worse. You > have > > been Warned. > > > > > > -- > Regards, > Shalin Shekhar Mangar. >
hello, a question about solr.
i use solr for 3 months, and i find some question follow: i check the solr source code, and find it uses lucene's QueryParser to parse user's input querystring for example, a query like this "name:ibmT63notebook" ,solr will parse it like 'name:"ibm T63 notebook"' , it regard this as a PhrazeQuery,so it will use PhrazeQuery. but i want to get a result which include "ibm" and "T63" and "notebook" at any postion. for example ,it should match some sentence like "i have a notebook ,it is t63 of ibm".. but solr doesn't do that,it consider that queryparser as a PhrazeQuery, how can i do that as my mind? thanks, your friend!
Re: hello, a question about solr.
the name field is text,which is analysed, i use the query "name:ibmT63notebook" 2008/8/18, Shalin Shekhar Mangar <[EMAIL PROTECTED]>: > > Hi, > > What is the type of the field "name"? > Does a query like "name:ibm OR name:T63 OR name:notebook" work for you? > > On Mon, Aug 18, 2008 at 10:43 AM, finy finy <[EMAIL PROTECTED]> wrote: > > > i use solr for 3 months, and i find some question follow: > > > > i check the solr source code, and find it uses lucene's QueryParser to > > parse > > user's input querystring > > > > for example, a query like this "name:ibmT63notebook" ,solr will parse it > > like 'name:"ibm T63 notebook"' , it regard this as a PhrazeQuery,so it > > will use PhrazeQuery. > > > > but i want to get a result which include "ibm" and "T63" and "notebook" > at > > any postion. for example ,it should match some sentence like "i have a > > notebook ,it is t63 of ibm".. > > > > but solr doesn't do that,it consider that queryparser as a PhrazeQuery, > > how > > can i do that as my mind? > > > > thanks, > > your friend! > > > > > > -- > Regards, > Shalin Shekhar Mangar. >
Re: hello, a question about solr.
because i use chinese character, for example "ibm笔记本电脑" solr will parse it into a term "ibm" and a phraze "笔记本 电脑" can i use solr to query with a term "ibm" and a term "笔记本" and a term "电脑"? 2008/8/18, Norberto Meijome <[EMAIL PROTECTED]>: > > On Mon, 18 Aug 2008 15:33:02 +0800 > "finy finy" <[EMAIL PROTECTED]> wrote: > > > the name field is text,which is analysed, i use the query > > "name:ibmT63notebook" > > why do you search with no spaces? is this free text entered by a user, or > is it part of a link which you control ? > > PS: please dont top-post > > _ > {Beto|Norberto|Numard} Meijome > > Commitment is active, not passive. Commitment is doing whatever you can to > bring about the desired result. Anything less is half-hearted. > > I speak for myself, not my employer. Contents may be hot. Slippery when > wet. Reading disclaimers makes you go blind. Writing them is worse. You have > been Warned. >
Re: hello, a question about solr.
thanks for your help. could you give me your gmail talk address or msn? 2008/8/19, Norberto Meijome <[EMAIL PROTECTED]>: > > On Mon, 18 Aug 2008 23:07:19 +0800 > "finy finy" <[EMAIL PROTECTED]> wrote: > > > because i use chinese character, for example "ibm___" > > solr will parse it into a term "ibm" and a phraze "_ __" > > can i use solr to query with a term "ibm" and a term "_" and a > term "__"? > > Hi finy, > you should look into n-gram tokenizers. Not sure if it is documented in the > wiki, but it has been discussed in the mailing list quite a few times. > > in short, an n-gram tokenizer breaks your input into blocks of characters > of size n , which are then used to compare in the index. I think for Chinese > , bi-gram is the favoured approach. > > good luck, > B > _ > {Beto|Norberto|Numard} Meijome > > I used to hate weddings; all the Grandmas would poke me and > say, "You're next sonny!" They stopped doing that when i > started to do it to them at funerals. > > I speak for myself, not my employer. Contents may be hot. Slippery when > wet. Reading disclaimers makes you go blind. Writing them is worse. You have > been Warned. >
a question about solr queryparser
i use solr 1.2 in my project, and i use myself Analizer. for example: "oneworld onedream" will be segmented to "one" ,"world", "one" , "dream" this is my analizer result. and i use it in solr. when i use a query "title:oneworld onedream" in solr , solr will parse it like this title:oneword title:onedream why? i think solr should parse it and generate the query like this "title:one title:world title:one title:dream". please help me~
solr's synonyms and stopwords?
i use solr1.2 the synonyms and stopwords is at conf directory when i have more than one webapp , i must configure synonyms and stopwords each. i want to define a directory for synonyms and stopwords for all webapp, it means that all webapp share one synonyms and stopwords . how to do it?
a question about solr phrasequery process.
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 please help me !
Re: a question about solr queryparser
i have plugged in my custom Analyzer (correctly) in the solrconfig.xml, my analyzer result is : one world one dream but when i input : oneworld onedream, solr parse this into : PhraseQquery(title:"one world one dream") , solr consider this as a PhraseQuery, but this is not what i want to get. i want to get the search condition: title:one title:world title:dream 2008/9/26 Chris Hostetter <[EMAIL PROTECTED]> > > : (correctly) in the solrconfig.xml. Could you paste the relevant part of > : solrconfig.xml? I don't recall a bug related to this, but you could > : also try Solr 1.3 if you believe you configured things conrrectly. > > also check the Analysis Tool (link from the admin page) and see what it > says your analyzer produces for your field and a *query* for... > >oneworld > > ...keep in mind that the query parser only associates "chunks" of text > with something like "title:" if the text is quoted or the whitespace > between the chunks is escaped, so ... > >title:oneworld onedream > > ...will cause "oneworld" to be passed to the analyzer for your title field > and "onedream" to the analyzer for whatever your default field is. > > > > -Hoss > >
Re: a question about solr phrasequery process.
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=#> * * oneworldonedream * * oneworldonedream * * *PhraseQuery(title:"one world dream")* * * *title:"one world dream"* * * * * *OldLuceneQParser* ... 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 >
Re: a question about solr phrasequery process.
thanks for your help *** set the position increment of all of the tokens you get to 0... this should have the effect of an "OR". *** how to do this? in solr solrconfig.xml? or schema.xml? please help me. 2008/11/24 Yonik Seeley <[EMAIL PROTECTED]> > 2008/11/24 finy finy <[EMAIL PROTECTED]>: > > 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 > > OK, this is just the way the Lucene and Solr query parsers work... > multiple tokens from the analyzer of a single "parser level" token is > normally treated as a phrase query. > > What you could try to do is set the position increment of all of the > tokens you get to 0... this should have the effect of an "OR". > > -Yonik >