Re: EdgeNGramFilterFactory More specific ?
Thanks NGramFilter Work perfectly for my case ;) Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06 2017-08-24 10:41 GMT+02:00 Markus Jelsma <markus.jel...@openindex.io>: > NGramFilter! > > > > -Original message- > > From:Guilleret Florian <guilleret.flor...@gmail.com> > > Sent: Thursday 24th August 2017 10:30 > > To: solr-user@lucene.apache.org > > Subject: EdgeNGramFilterFactory More specific ? > > > > I use a fieldtype who use EdgeNGramFilterFactory min 1 max 15. It work > > perfectly and i got this behavior : > > > > For string like : > > > > DU2083 > > > > I got : > > > > D > > DU > > DU2 > > DU20 > > DU208 > > DU2083 > > > > Its ok but i need do deeper. I want this behavior : > > > > DU2083 > > > > I need to split like : > > > > > > D > > DU > > DU2 > > DU20 > > DU208 > > DU2083 > > 3 > > 83 > > 083 > > 2083 > > U2083 > > DU2083 > > > > Like a reverse EdgeNGramFilterFactor. Do you know how to got this > behavior ? > > > > > > > > Guilleret Florian <http://www.girodmedical.com/> > > Tel : +33 6 21 28 43 06 > > >
EdgeNGramFilterFactory More specific ?
I use a fieldtype who use EdgeNGramFilterFactory min 1 max 15. It work perfectly and i got this behavior : For string like : DU2083 I got : D DU DU2 DU20 DU208 DU2083 Its ok but i need do deeper. I want this behavior : DU2083 I need to split like : D DU DU2 DU20 DU208 DU2083 3 83 083 2083 U2083 DU2083 Like a reverse EdgeNGramFilterFactor. Do you know how to got this behavior ? Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06
Re: EdgeNGramFilterFactory did not work
Ok perfect I will do that then i have only 5-6 field so its ok. Thank you for your help ! Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06 2017-08-21 13:32 GMT+02:00 Junte Zhang <junte.zh...@localsearch.ch>: > Unfortunately not. I would recommend not to use a catch-all field (saves > storage!), but list all the fields you consider "fulltext" in your > application in a disjunction query. This should not come at the expensive > of performance, unless you have a huge amount of fields. Then it should > work. > > /JZ > > -----Original Message- > From: Guilleret Florian [mailto:guilleret.flor...@gmail.com] > Sent: Monday, August 21, 2017 11:21 AM > To: solr-user@lucene.apache.org > Subject: Re: EdgeNGramFilterFactory did not work > > Yes i use the catch all field like : > > > > And you rights when I request solr like = this ?df=textNgramStr2 it works > perfectly. > > But is there a way to still use the catch all field ? Because i have other > file like name and description who are only in the _text_ and not in > textNgramStr2 > > Kind regards > > Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06 > > 2017-08-21 11:07 GMT+02:00 Junte Zhang <junte.zh...@localsearch.ch>: > > > You have to specify the field where you specified this field analyzer > > in your request. If you use the catch all field by omitting the field, > > it does not use your filter factory. > > > > /JZ > > > > -Original Message- > > From: Guilleret Florian [mailto:guilleret.flor...@gmail.com] > > Sent: Thursday, August 17, 2017 2:42 PM > > To: solr-user@lucene.apache.org > > Subject: EdgeNGramFilterFactory did not work > > > > Hi, > > > > I want to got this use : > > > > My document got SKU. Like : 27VAN670 > > > > When i query 27VAN670 solr return my document well. > > > > But when i query 27VAN solr return 0 document; > > > > So someone telle me to use EdgeNGramFilterFactory. > > > > With SOLR Api I add new Field Type : > > > > { > > "add-field-type" : { > > "name":"textNgram2", > > "class":"solr.TextField", > > "positionIncrementGap":"100", > > "analyzer" : { > > "tokenizer":{ > >"class":"solr.StandardTokenizerFactory" }, > > "filters":[{ > >"class":"solr.EdgeNGramFilterFactory", > >"minGramSize":"1", > >"maxGramSize":"15" > >}]} > >} > > > > } > > > > And I also create a new Field : > > > > { > > "add-field":{ > > "name":"textNgramStr2", > > "type":"textNgram2", > > "stored":true, > > "indexed":true > > } > > } > > > > Now in SOLR admin I cans saw my new textNgramStr2. And when I update > > my document in solr I put SKU of my product in textNgramStr2. > > > > But solr still found nothing when I request 27VAN > > > > Can someone help me on that ? > > >
Re: EdgeNGramFilterFactory did not work
Yes i use the catch all field like : And you rights when I request solr like = this ?df=textNgramStr2 it works perfectly. But is there a way to still use the catch all field ? Because i have other file like name and description who are only in the _text_ and not in textNgramStr2 Kind regards Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06 2017-08-21 11:07 GMT+02:00 Junte Zhang <junte.zh...@localsearch.ch>: > You have to specify the field where you specified this field analyzer in > your request. If you use the catch all field by omitting the field, it does > not use your filter factory. > > /JZ > > -----Original Message- > From: Guilleret Florian [mailto:guilleret.flor...@gmail.com] > Sent: Thursday, August 17, 2017 2:42 PM > To: solr-user@lucene.apache.org > Subject: EdgeNGramFilterFactory did not work > > Hi, > > I want to got this use : > > My document got SKU. Like : 27VAN670 > > When i query 27VAN670 solr return my document well. > > But when i query 27VAN solr return 0 document; > > So someone telle me to use EdgeNGramFilterFactory. > > With SOLR Api I add new Field Type : > > { > "add-field-type" : { > "name":"textNgram2", > "class":"solr.TextField", > "positionIncrementGap":"100", > "analyzer" : { > "tokenizer":{ >"class":"solr.StandardTokenizerFactory" }, > "filters":[{ >"class":"solr.EdgeNGramFilterFactory", >"minGramSize":"1", >"maxGramSize":"15" >}]} >} > > } > > And I also create a new Field : > > { > "add-field":{ > "name":"textNgramStr2", > "type":"textNgram2", > "stored":true, > "indexed":true > } > } > > Now in SOLR admin I cans saw my new textNgramStr2. And when I update my > document in solr I put SKU of my product in textNgramStr2. > > But solr still found nothing when I request 27VAN > > Can someone help me on that ? >
EdgeNGramFilterFactory did not work
Hi, I want to got this use : My document got SKU. Like : 27VAN670 When i query 27VAN670 solr return my document well. But when i query 27VAN solr return 0 document; So someone telle me to use EdgeNGramFilterFactory. With SOLR Api I add new Field Type : { "add-field-type" : { "name":"textNgram2", "class":"solr.TextField", "positionIncrementGap":"100", "analyzer" : { "tokenizer":{ "class":"solr.StandardTokenizerFactory" }, "filters":[{ "class":"solr.EdgeNGramFilterFactory", "minGramSize":"1", "maxGramSize":"15" }]} } } And I also create a new Field : { "add-field":{ "name":"textNgramStr2", "type":"textNgram2", "stored":true, "indexed":true } } Now in SOLR admin I cans saw my new textNgramStr2. And when I update my document in solr I put SKU of my product in textNgramStr2. But solr still found nothing when I request 27VAN Can someone help me on that ?
Re: Query Partial Matching on auto schema
Thanks you for your answer. So i saw that in solrconfig.xml i got : true managed-schema And in file managed-schema i got all the schema : But solr tell to not edit the managed-schema. So where do i need to put this : ? Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06 2017-06-23 16:48 GMT+02:00 Erick Erickson <erickerick...@gmail.com>: > I simply do not recommend going to production with schemaless. That > mechanism must make certain assumptions about the data and simply > cannot anticipate all the types of searching you need to do. > > As Alessandro says, you can define whatever you want "by hand" and > still have schemaless add input. It becomes a matter of preference, > would you rather have documents with fields that haven't been seen > before fail immediately? Or would you rather have them get new fields > that you then have to discover? I prefer the former. > > Best, > Erick > > On Fri, Jun 23, 2017 at 3:41 AM, alessandro.benedetti > <a.benede...@sease.io> wrote: > > Quoting the official solr documentation : > > " You Can Still Be Explicit > > Even if you want to use schemaless mode for most fields, you can still > use > > the Schema API to pre-emptively create some fields, with explicit types, > > before you index documents that use them. > > > > Internally, the Schema API and the Schemaless Update Processors both use > the > > same Managed Schema functionality." > > > > Even using schemaless you can use the managed schema APi to define your > own > > field types and fields. > > > > For more info [1] > > > > [1] > > https://lucene.apache.org/solr/guide/6_6/schemaless- > mode.html#SchemalessMode-EnableManagedSchema > > > > > > > > - > > --- > > Alessandro Benedetti > > Search Consultant, R Software Engineer, Director > > Sease Ltd. - www.sease.io > > -- > > View this message in context: http://lucene.472066.n3. > nabble.com/Query-Partial-Matching-on-auto-schema-tp4342502p4342509.html > > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: Query Partial Matching on auto schema
Yes I mean schemaless. Then with schemaless its impossible to have what I expect ? Guilleret Florian <http://www.girodmedical.com/> Tel : +33 6 21 28 43 06 2017-06-23 12:26 GMT+02:00 alessandro.benedetti <a.benede...@sease.io>: > With automatic schema do you mean schemaless ? > You will need to define a schema managed/old legacy style as you prefer. > > Then you define a field type that suites your needs ( for example with an > edge n-gram token filter[1] ). > And you assign that field type to a specific field. > > Than in your request handler/ when you build your query just use that field > to search. > > Regards > > [1] > https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html# > FilterDescriptions-EdgeN-GramFilter > > > > - > --- > Alessandro Benedetti > Search Consultant, R Software Engineer, Director > Sease Ltd. - www.sease.io > -- > View this message in context: http://lucene.472066.n3. > nabble.com/Query-Partial-Matching-on-auto-schema-tp4342502p4342506.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Query Partial Matching on auto schema
Hi, I use SOLR 5.2.1 with automatic schema. But when try a query with a partial word, Solr didn't found anything. Exemple : I request a query : NHLDO Solr return nothing but there is a document with name NHLDO457 If i request this query : NHLDO457 Solr return me the document. So how i can configure SOLR to retrieve document even with partial word in query with auto schema ? Kind Regards Guilleret Florian