Thanks Erik! I'll be reading that issue, it's pretty much everything i need!
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-indexing-plugin-skip-single-faulty-document-tp3427646p3447400.html
Sent from the Solr - User mailing list archive at Nabble.com.
Ok i'll surely check out what i can!
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-indexing-plugin-skip-single-faulty-document-tp3427646p3447537.html
Sent from the Solr - User mailing list archive at Nabble.com.
Hi all, as far as i know, when solr finds a faulty document (inside an xml
containing let say 1000 docs) it skips the whole file and the indexing
process exits with exception (am i correct?)
I'm using a custom indexing plugin, and i can trap the exception. Instead of
using default values if that
yay i did it! i wasn't that far away from the correct implementation, it just
was a bit tricky to understand how to...
now i've got a problem with my singleton class:
i have DBConnectionManager.jar put inside a folder (lib
dir=../../../dist/custom/ regex=\*\.jar / from solrconfig.xml) but at
ok solved it by changing (lib dir=../../../dist/custom/ regex=\*\.jar
/) to
lib path=../../../dist/custom/DBConnectionManager.jar /
ty guys for all yor help, now off to debug some java errors hehe
thanks again, for real!
--
View this message in context:
you need to define the search field as MultiValued since you're copying
into it multiple sources
http://wiki.apache.org/solr/FAQ#How_do_I_use_copyField_with_wildcards.3F
--
View this message in context:
http://lucene.472066.n3.nabble.com/Issue-with-Solr-and-copyFields-tp3300763p3300794.html
Thanks, but this was not the point of the topic :) I'm way more further than
this :) Please, avoid random replies :)
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-custom-plugins-is-it-possible-to-have-them-persistent-tp3292781p3301057.html
Sent from the Solr - User
Eh eh you're right! This is what happens when you try to learn too much
things in the same moment!
Btw, i found this
http://webdevelopersjournal.com/columns/connection_pool.html which is
perfect, i can use the provided code as my singleton instance, now i just
have to figure out how i can detect
SEVERE: org.apache.solr.common.SolrException: Error Instantiating
UpdateRequestProcessorFactory, ToTheGoCustom is not a
org.apache.solr.update.processor.UpdateRequestProcessorFactory
i'm getting this error, but i don't know how to fix it
this is solrconfig.xml:
updateRequestProcessorChain
my problem is i still don't understand where i have to put that singleton (or
how i can load it into solr)
i have my singleton class Connector for mysql, with all its methods defined.
Now what? This is the point i'm missing :(
--
View this message in context:
ok so my two singleton classes are MysqlConnector and JFJPConnector
basically:
1 - jar them
2 - cp them to /custom/path/within/solr/
3 - modify solrconfig.xml with lib/custom/path/within/solr//lib
my two jars are then automatically loaded? nice!
in my CustomUpdateProcessor class i can call
i think it's better for me to keep it under some solr installation path, i
don't want to loose files :)
ok, i'm going to try this out :) i already got into the package issue
(my.package.whatever) this one i know how to handle!
thanks for all the help, i'll post again to tell you It Works! (but
i thinki i have to drop the singleton class solution, since my boss wants to
add 2 other different solr installation and i need to reuse the plugins i'm
working on... so i'll have to use a connectionpool or i will create hangs
when the 3 cores update their indexes at the same time :(
--
View this
I've posted a similar question few days ago, but our needs have gone a bit
further.
I need to develop two plugins which need to be persistent throu the whole
indexing and updating process
The first one need to open a connection to a mysql instance (and query that
connection during every document
it's how i'm doing it now... but i'm not sure i'm placing the objects into
the right place
significant part of my code here : http://pastie.org/2448984
(i've omitted the methods implementations since are pretty long)
inside the method setLocation, i create the connection to mysql database
since i'm barely new to solr, can you please give some guidelines or provide
an example i can look at for starters?
i already tought about a singleton implementation, but i'm not sure where i
have to put it and how should i start coding it
--
View this message in context:
I wrote my custom update handler for my solr installation, using jdbc to
query a mysql database. Everything works fine: the updater queries the db,
gets the data i need and update it in my documents! Fantastic!
Only issue is i have to open and close a mysql connection for every document
i read.
those documents are unrelated to the database. the db i have is just storing
countries - region - cities, and it's used to do a refinement on a specific
solr field
example:
solrField thetext with content Mary comes from London
updateHandler polls the database for europe - great britain - london
those documents are unrelated to the database. the db i have is just storing
countries - region - cities, and it's used to do a refinement on a specific
solr field
example:
solrField thetext with content Mary comes from London
updateHandler polls the database for europe - great britain - london
actually i'm rewriting http://wiki.apache.org/solr/UpdateRequestProcessor
this wiki page with a more detailed how-to, it will be ready and online
after i get back from work!
--
View this message in context:
Hi, i have this bunch of lines in my schema.xml that should do a replacement
but it doesn't work!
fieldType name=salary_max_text class=solr.TextField
omitNorms=true
analyzer type=index
tokenizer class=solr.StandardTokenizerFactory/
charFilter
fieldType name=salary_min_text class=solr.TextField
analyzer type=index
charFilter class=solr.PatternReplaceCharFilterFactory
pattern=[^\d]?([0-9]+[k,.]?[0-9]*)+.*?([0-9]+[k,.]?[0-9]*)+.*
replacement=$1/
tokenizer class=solr.KeywordTokenizerFactory/
filter
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,
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 updates its
ok, but i'm not applying the filtering on the copyfields.
this is how my schema looks:
field name=salary type=text indexed=true stored=true /
field name=salary_min type=salary_min_text indexed=true stored=true
/
field name=salary_max type=salary_max_text indexed=true stored=true
/
copyField
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
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
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
28 matches
Mail list logo