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 archi

Re: Regex replacement not working!

2011-06-29 Thread Adam Estrada
ml > > i'm sorry for this question, but i started working on solr 5 days ago and > for some things i really need a lot of documentation, and this isn't fully > covered anywhere > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Regex-replacement-

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
so i don't understand how i do have to change the schema.xml i'm sorry for this question, but i started working on solr 5 days ago and for some things i really need a lot of documentation, and this isn't fully covered anywhere -- View this message in context: http://lucene.472066.n3.nab

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
i remember reading something around, but cannot find it again... -- View this message in context: http://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121625.html Sent from the Solr - User mailing list archive at Nabble.com.

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
> > > > > > 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://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121497.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
ge in context: http://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121497.html Sent from the Solr - User mailing list archive at Nabble.com.

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
king, it copies the value from one field to another, but the filter isn't applied, even if it's working as you could see -- View this message in context: http://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121386.html Sent from the Solr - User mailing list archive at Nabble.com.

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
.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121353.html Sent from the Solr - User mailing list archive at Nabble.com.

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
out any problem -- View this message in context: http://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3121055.html Sent from the Solr - User mailing list archive at Nabble.com.

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?[.,

Regex replacement not working!

2011-06-29 Thread samuele.mattiuzzo
.nabble.com/Regex-replacement-not-working-tp3120748p3120748.html Sent from the Solr - User mailing list archive at Nabble.com.