NullPointerException
Hello all, I have perform a full indexation with solr, but when I try to perform an incrementation indexation I get the following exception (cf attachment). Any one have a idea of the problem ? Greate thank 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DataImporter doDeltaImport INFO: Starting Delta Import 23 oct. 2013 08:34:40 org.apache.solr.core.SolrCore execute INFO: [knowledgebase] webapp=null path=/dataimport params={qt=%2Fdataimport&command=delta-import&core=knowledgebase} status=0 QTime=0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.SolrWriter readIndexerProperties INFO: Read dataimport.properties 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder doDelta INFO: Starting delta collection. 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Running ModifiedRowKey() for Entity: Tag 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed ModifiedRowKey for Entity: Tag rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed DeletedRowKey for Entity: Tag rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed parentDeltaQuery for Entity: Tag 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Running ModifiedRowKey() for Entity: MvaFAHTagCode 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed ModifiedRowKey for Entity: MvaFAHTagCode rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed DeletedRowKey for Entity: MvaFAHTagCode rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed parentDeltaQuery for Entity: MvaFAHTagCode 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Running ModifiedRowKey() for Entity: Attachment 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed ModifiedRowKey for Entity: Attachment rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed DeletedRowKey for Entity: Attachment rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed parentDeltaQuery for Entity: Attachment 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Running ModifiedRowKey() for Entity: MvaFahAttID 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed ModifiedRowKey for Entity: MvaFahAttID rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed DeletedRowKey for Entity: MvaFahAttID rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed parentDeltaQuery for Entity: MvaFahAttID 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Running ModifiedRowKey() for Entity: RefFaqLngID 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed ModifiedRowKey for Entity: RefFaqLngID rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed DeletedRowKey for Entity: RefFaqLngID rows obtained : 0 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Completed parentDeltaQuery for Entity: RefFaqLngID 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DocBuilder collectDelta INFO: Running ModifiedRowKey() for Entity: FAQ 23 oct. 2013 08:34:40 org.apache.solr.handler.dataimport.DataImporter doDeltaImport GRAVE: Delta Import Failed java.lang.NullPointerException at org.apache.solr.handler.dataimport.EvaluatorBag$4.evaluate(EvaluatorBag.java:146) at org.apache.solr.handler.dataimport.EvaluatorBag$5.get(EvaluatorBag.java:222) at org.apache.solr.handler.dataimport.EvaluatorBag$5.get(EvaluatorBag.java:209) at org.apache.solr.handler.dataimport.VariableResolverImpl.resolve(VariableResolverImpl.java:118) at org.apache.solr.handler.dataimport.TemplateString.fillTokens(TemplateString.java:81) at org.apache.solr.handler.dataimport.TemplateString.replaceTokens(TemplateString.java:75) at org.apache.solr.handler.dataimport.VariableResolverImpl.replaceTokens(VariableResolverImpl.java:96) at org.apache.solr.handler.dataimport.ContextImpl.replaceTokens(ContextImpl.java:256) at org.apache.solr.handler.dataimport.SqlEntityProcessor.nextModifiedRowKey(SqlEntityProcessor.java:84) at org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextModifiedRowKey(EntityProcessorWrapper.java:262) at org.apache.solr.handler.dataimport.DocBuilder.collectDelta(DocBuild
RE: How to do fuzzy search on phrases
Tomokoさん、おはようございます。 Can I use ComplexPhraseQueryParser with Core Solr 3.3.0 ? どうもありがとうございます。 お邪魔しました。 宜しくお願いします。 Bien cordialement, ルフフィエ アドリエン Adrien Ruffié LD : +33 1 73 03 26 40 Tél : +33 1 73 03 29 80 E-DEAL Innover la Relation Client -Message d'origine- De : Tomoko Uchida [mailto:tomoko.uchida.1...@gmail.com] Envoyé : mercredi 14 janvier 2015 14:31 À : solr-user@lucene.apache.org Objet : Re: How to do fuzzy search on phrases Hi, I suspect you are likely to misunderstand fuzzy search. You should append "~N" to end of each query term, not whole query string / phrase. (You can debug your query and get useful information by specifying "debugQuery=true" parameter, try it if you have not.) At first glance, I guess Complex Phrase Query Parser possibly might work for you... This allows more control over phrase query. https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser Just for your information, I indexed a document that has two fields, id and title. title field is tokenized by StandardTokenizer. - id: 1 - title: mist spa And I issued two phrase queries to Solr, one uses default parser (Standard Query Paraser) and other uses Complex Phrase Query Parser. * Query 1 title:"mysty~ spa"// not hit * Query 2 {!complexphrase}title:"mysty~ spa"// hits I have no idea about performance impact. (you'll need sufficient performance test.) Regards, Tomoko 2015-01-14 18:34 GMT+09:00 madhav bahuguna : > HI > > Iam using solr 4.7 and solr php client. > > So heres the issue ,i have data indexed in solr > eg > > mist spa > > > I have applied fuzzy to my search and If i search myst or mysty i get the > correct result i get mist spa in result. > But if i write mysty spa or must spa i do not get ant results.Iam not able > to implement fuzzy search on more than one word. > Can any one advise me or help me regarding this. > The query iam passing using solr php client is > > $querynew="(business_name:$data~N)"; > > -- > Regards > Madhav Bahuguna >
RE: Solr Suggest
Great thank Tanguy for your response, My boss ask me to before upgrade solr version because we are in 3.3.0 (in order to swith to 4.3.1) I tried with new version and I come to you again later. Yes ? Great Thank again Tanguy :-) Bien cordialement, Adrien Ruffié LD : +33 1 73 03 29 50 Tél : +33 1 73 03 29 80 E-DEAL Innover la Relation Client -Message d'origine- De : Tanguy Moal [mailto:tanguy.m...@gmail.com] Envoyé : mercredi 3 juillet 2013 10:27 À : solr-user@lucene.apache.org Objet : Re: Solr Suggest Hello Adrien, Looking quickly at your schema, I suspect that the suggestions field isn't populated, so the suggester dictionary is empty. How is input sent to that field ? Providing a few sample documents you are indexing could help understand what is going on. If you intended to copy content from an other field (name maybe) then a copyField is missing : If you the suggestions field is already populated in the documents you send to the index, then what you are trying *should* work. To make sure of a field's contents, use the terms component. Try something like : http://localhost:8080/myapp/solr/myapp/terms?terms.fl=suggestions&terms.sort=index&terms.prefix=adr This will give you all the indexed terms in the suggestions field starting with "adr". You can also remove the terms.prefix parameter to find the top ten terms in the suggestions field by frequency. If you have nothing here, then chances are that your suggestions field isn't populated as you expected. I hope this helps :-) Tanguy On Jul 3, 2013, at 8:17 AM, Adrien RUFFIE wrote: > Anyone can ask me ? It is so difficult to find a solution ? or information is > missing to identify the problem? > > Bien cordialement, > > Adrien Ruffié > LD : +33 1 73 03 29 50 > Tél : +33 1 73 03 29 80 > > E-DEAL > Innover la Relation Client > > De : Adrien RUFFIE [mailto:a.ruf...@e-deal.com] Envoyé : mardi 2 > juillet 2013 17:47 À : solr-user@lucene.apache.org Objet : Solr > Suggest > > Hello all, > > I have tried to implement Solr Suggest, but I don't have returned results. > > I add my small solrconfig.xml where searchComponent and requestHandler > is define, my schema.xml where field, fieldType, copyField is defined > . and my web.xml I The solr reload is the trace when I restart my solr server > and show me the good suggest reloading: > > > INFO: Loading spell index for spellchecker: suggest > 2 juil. 2013 17:30:43 org.apache.solr.spelling.suggest.Suggester > reload > INFO: reload() > 2 juil. 2013 17:30:43 org.apache.solr.spelling.suggest.Suggester build > INFO: build() > > > The respond when I try following request > http://localhost:8080/myapp/solr/myapp/suggest?q=adr&qt=myapp , is in > response.xml file. > Also solr.xml define my core, and full-indexation.txt is traces when I > perform a full indexation > > Do you have an idea of the problem ? > > Best regards, > > Bien cordialement, > > > > Adrien RUFFIE > Ingénieur R&D > 40, rue du Village d'Entreprises > 31670 Labège > www.e-deal.com > > LD : +33 1 73 03 29 50 > Std : +33 1 73 03 29 80 > Fax : +33 1 73 01 69 77 > a.ruf...@e-deal.com > > E-DEAL soutient le Pacte Mondial de l'ONU > > .txt>