Create a hash table when start.jar is run?
Hey I want to create a hash table that will be created when start.jar is run to start Apache Solr so that the hash table remains in memory till the time start.jar is running. Also I want to use this hash table every time my analyzer is called (both at indexing and query time). Please tell me how to do this? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Create-a-hash-table-when-start-jar-is-run-tp2184237p2184237.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Custom Analyzer
My actual class files present in the jar file are: MarathiAnalyzer.class MarathiStemFilter.class MarathiStemmer.class MarathiAnayzer$1.class MarathiAnalyzer$SavedStreams.class Please tell what else do I need to specify about my problem? -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-Analyzer-tp2162710p2167456.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Custom Analyzer
Thanks for replying Erick! I executed this query jar -tf jarfile.jar and my classes were indeed there. Regarding the package I had this line written in my java file: package org.apache.lucene.analysis.mr I removed this line but still it was not working. Then I tried creating a small project (marathi.jar, containing the class files) and place it in the lib folder, I even set the CLASSPATH to the jar file, but still Solr is throwing me a ClassNotFoundException. Please help me out! -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-Analyzer-tp2162710p2166185.html Sent from the Solr - User mailing list archive at Nabble.com.
Custom Analyzer
I have written a custom analyzer for Marathi Language on the lines of French Analyzer present in Lucene tweaking the stemming part. For compilation I put the three classes MarathiAnalyzer, MarathiStemFilter and MarathiStemmer in the MarathiAnalyzer class only (otherwise I was receiving errors that the marathiStemmer class is unavailable in MarathiStemFilter, dunno why?). After compilation I regenerated the lucene-analyzers-2.9.1.jar file and put it in the lib folder. But when I edit my schema.xml to use MarathiAnlyzer by writing , and when I run the start.jar file Solr throws me classNotFoundException as: java.lang.ClassNotFoundException: org.apache.lucene.analysis.mr.MarathiAnalyzer I tried using the FrenchAnalyzer using the same method and I was successful in doing that, but unsuccessful when I do the same for MarathiAnalyzer. Can anybody tell where I am mistaking? -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-Analyzer-tp2162710p2162710.html Sent from the Solr - User mailing list archive at Nabble.com.
How to write a custom stemmer for Apache Solr
have figured out that the stemmers already built in Apache Solr are contained in org.apache.lucene.analysis.nl.* (for Dutch) but I can't find this package in my Lucene folder. Also I need to write a stemmer for marathi language, any help how should I proceed? -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-write-a-custom-stemmer-for-Apache-Solr-tp2140217p2140217.html Sent from the Solr - User mailing list archive at Nabble.com.