Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
> too bad it is still in todo, that's > why i was asking some for some tips on > writing, compiling, registration, calling... Here is general information about how to customize solr via plugins. http://wiki.apache.org/solr/SolrPlugins Here is the registration and code example. http://wiki.apache.

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
too bad it is still in todo, that's why i was asking some for some tips on writing, compiling, registration, calling... -- View this message in context: http://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121856.html Sent from the Solr - User mailing list archive at Nabbl

Re: Regex replacement not working!

2011-06-29 Thread Adam Estrada
I have had the same problems with regex and I went with the regular pattern replace filter rather than the charfilter. When I added it to the very end of the chain, only then would it work...I am on Solr 3.2. I have also noticed that the HTML filter factory is not working either. When I dump the fi

Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
> ok, last question on the > UpdateProcessor: can you please give me the steps to > implement my own? > i mean, i can push my custom processor in solr's code, and > then what? > i don't understand how i have to change the solrconf.xml > and how can i bind > that to the updater i just wrotea > and a

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
ok, last question on the UpdateProcessor: can you please give me the steps to implement my own? i mean, i can push my custom processor in solr's code, and then what? i don't understand how i have to change the solrconf.xml and how can i bind that to the updater i just wrotea and also i don't unders

Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
> my goal is/was storing the value into > the field, and i get i have to create > my Update handler. > > i was trying to use query with salary_min:[100 TO 200] and > it's actually > working... since i just need it to search, i'll stay with > this solution > > is the [100 TO 200] a performance kil

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
my goal is/was storing the value into the field, and i get i have to create my Update handler. i was trying to use query with salary_min:[100 TO 200] and it's actually working... since i just need it to search, i'll stay with this solution is the [100 TO 200] a performance killer? i remember read

Re: Regex replacement not working!

2011-06-29 Thread Michael Kuhlmann
Am 29.06.2011 12:30, schrieb samuele.mattiuzzo: > > ... > this is the "final" version of my schema part, but what i get is this: > > > > 1.0 > Negotiable > Negotiable > Negotiable > ... The mistake is that you assume that the filter applied to the result. This is not true. Index

Re: Regex replacement not working!

2011-06-29 Thread Juan Grande
Hi Samuele, It's not clear for me if your goal is to search on that field (for example, "salary_min:[100 TO 200]") or if you want to show the transformed field to the user (so you want the result of the regex replacement to be included in the search results). If your goal is to show the results t

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
ok, but i'm not applying the filtering on the copyfields. this is how my schema looks: and the two datatypes defined before. that's why i tought i could first use "copyField" to copy the value then index them with my two datatypes filtering... -- View this message in context: http://l

Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
> i have the string "You may earn 25k > dollars per week" stored in the field > "salary" > > i'm using 2 copyfields "salary_min" and "salary_max" with > source in "salary" > with those 2 datatypes > > salary is "text" > salary_min is "salary_min_text" > salary_max is "salary_max_text" > > so, i

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
i have the string "You may earn 25k dollars per week" stored in the field "salary" i'm using 2 copyfields "salary_min" and "salary_max" with source in "salary" with those 2 datatypes salary is "text" salary_min is "salary_min_text" salary_max is "salary_max_text" so, i was expecting this: solr

Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
> Index Analyzer > org.apache.solr.analysis.KeywordTokenizerFactory > {luceneMatchVersion=LUCENE_31} > position    1 > term text    £22000 - £25000 per annum + > benefits > startOffset    0 > endOffset    36 > > > org.apache.solr.analysis.PatternReplaceFilterFactory > {replacement=$2, > pattern=[

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
Index Analyzer org.apache.solr.analysis.KeywordTokenizerFactory {luceneMatchVersion=LUCENE_31} position1 term text £22000 - £25000 per annum + benefits startOffset 0 endOffset 36 org.apache.solr.analysis.PatternReplaceFilterFactory {replacement=$2, pattern=[^\d]?([0-9]+[k,

Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
>     name="salary_min_text" class="solr.TextField" > >       >         class="solr.PatternReplaceCharFilterFactory" > pattern="[^\d]?([0-9]+[k,.]?[0-9]*)+.*?([0-9]+[k,.]?[0-9]*)+.*" > replacement="$1"/> >         class="solr.KeywordTokenizerFactory"/> >         class="solr.LowerCaseFilterFact

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
this is the "final" version of my schema part, but what i get is this: 1.0

Re: Regex replacement not working!

2011-06-29 Thread Ahmet Arslan
> Hi, i have this bunch of lines in my > schema.xml that should do a replacement > but it doesn't work! > >     class="solr.TextField" > omitNorms="true"> >       >           class="solr.StandardTokenizerFactory"/> >         class="solr.PatternReplaceCharFilterFactory" > pattern="([0-9]+k?[.,