RES: Boosting in query level the relevance based in content of any fields

2012-10-01 Thread Claudio Ranieri
Hi Erick.

When I set up the query, I will inform the cities that I wish the weight has 
increased. Is there any way I can do this?
How would I do for the contents of some fields increase the relevance (not 
increasing for all values ​​of the field)? Is there any function to do this?
How would I do?

-Mensagem original-
De: Erick Erickson [mailto:erickerick...@gmail.com] 
Enviada em: sexta-feira, 28 de setembro de 2012 15:51
Para: solr-user@lucene.apache.org
Assunto: Re: Boosting in query level the relevance based in content of any 
fields

How can Solr/Lucene distinguish between that which must be boosted and that 
which must not? There must be some rule here, what is it?

Until one understands the rule, there's not much one can suggest...

Best
Erick

On Fri, Sep 28, 2012 at 9:00 AM, Claudio Ranieri claudio.rani...@estadao.com 
wrote:
 With dismax / edixmax I can boost a field, but not boosting based on content 
 of field (in my example, São Paulo and Rio de Janeiro must have boost, but 
 Campinas, Rio Branco and Ourinhos not). Is it possible?

 -Mensagem original-
 De: Miguel Ángel Martín [mailto:miguelangel.mar...@brainsins.com]
 Enviada em: sexta-feira, 28 de setembro de 2012 09:53
 Para: solr-user@lucene.apache.org
 Assunto: Re: Boosting in query level the relevance based in content of 
 any fields

 Hi c.

 Recently, i was testing that issue, i use boost query in solr 3.6.1 
 with edixmax and works fine for me

 Regards
 El 28/09/2012 14:44, Claudio Ranieri claudio.rani...@estadao.com
 escribió:

 Hello,

 How can I boost in query level the relevance of documents  based in 
 content of any fields? Example, I have 5 documents with fields: name 
 and
 city:

 name | city
 Jose | Campinas
 Jose | São Paulo
 Jose | Rio de Janeiro
 Jose | Rio Branco
 Jose | Ourinhos

 In search by Jose, I wish return on top the documents (Jose | São 
 Paulo and Jose | Rio de Janeiro). I don´t want create a third field 
 important
 to sort.
 I don´t want create the boosting based on id with elevate.xml Is it 
 possible boosting in query level the documents with city São Paulo
 or Rio de Janeiro?
 Thanks,






RES: Boosting in query level the relevance based in content of any fields

2012-10-01 Thread Claudio Ranieri
Hi Erick

The user will search in name field, not in city field.
I will create a third field important and I will sort by this field.  

-Mensagem original-
De: Erick Erickson [mailto:erickerick...@gmail.com] 
Enviada em: segunda-feira, 1 de outubro de 2012 08:43
Para: solr-user@lucene.apache.org
Assunto: Re: Boosting in query level the relevance based in content of any 
fields

Unless I'm misreading something, this sounds like simple boosting at query 
time, see:
https://lucene.apache.org/core/3_6_0/queryparsersyntax.html#Boosting a Term

Best
Erick

On Mon, Oct 1, 2012 at 6:58 AM, Claudio Ranieri claudio.rani...@estadao.com 
wrote:
 Hi Erick.

 When I set up the query, I will inform the cities that I wish the weight has 
 increased. Is there any way I can do this?
 How would I do for the contents of some fields increase the relevance (not 
 increasing for all values of the field)? Is there any function to do this?
 How would I do?

 -Mensagem original-
 De: Erick Erickson [mailto:erickerick...@gmail.com] Enviada em: 
 sexta-feira, 28 de setembro de 2012 15:51
 Para: solr-user@lucene.apache.org
 Assunto: Re: Boosting in query level the relevance based in content of 
 any fields

 How can Solr/Lucene distinguish between that which must be boosted and that 
 which must not? There must be some rule here, what is it?

 Until one understands the rule, there's not much one can suggest...

 Best
 Erick

 On Fri, Sep 28, 2012 at 9:00 AM, Claudio Ranieri 
 claudio.rani...@estadao.com wrote:
 With dismax / edixmax I can boost a field, but not boosting based on content 
 of field (in my example, São Paulo and Rio de Janeiro must have boost, but 
 Campinas, Rio Branco and Ourinhos not). Is it possible?

 -Mensagem original-
 De: Miguel Ángel Martín [mailto:miguelangel.mar...@brainsins.com]
 Enviada em: sexta-feira, 28 de setembro de 2012 09:53
 Para: solr-user@lucene.apache.org
 Assunto: Re: Boosting in query level the relevance based in content 
 of any fields

 Hi c.

 Recently, i was testing that issue, i use boost query in solr 3.6.1 
 with edixmax and works fine for me

 Regards
 El 28/09/2012 14:44, Claudio Ranieri claudio.rani...@estadao.com
 escribió:

 Hello,

 How can I boost in query level the relevance of documents  based in 
 content of any fields? Example, I have 5 documents with fields: name 
 and
 city:

 name | city
 Jose | Campinas
 Jose | São Paulo
 Jose | Rio de Janeiro
 Jose | Rio Branco
 Jose | Ourinhos

 In search by Jose, I wish return on top the documents (Jose | São 
 Paulo and Jose | Rio de Janeiro). I don´t want create a third field 
 important
 to sort.
 I don´t want create the boosting based on id with elevate.xml Is it 
 possible boosting in query level the documents with city São Paulo
 or Rio de Janeiro?
 Thanks,






RES: Boosting in query level the relevance based in content of any fields

2012-10-01 Thread Claudio Ranieri
Hi Toke,

Is there a way to omit the cities with boosting 1?
The number of cities is big, but the number of important cities is small.

-Mensagem original-
De: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] 
Enviada em: segunda-feira, 1 de outubro de 2012 09:13
Para: solr-user@lucene.apache.org
Assunto: Re: Boosting in query level the relevance based in content of any 
fields

On Fri, 2012-09-28 at 14:43 +0200, Claudio Ranieri wrote:
 name | city
 Jose | Campinas
 Jose | São Paulo
 Jose | Rio de Janeiro
 Jose | Rio Branco
 Jose | Ourinhos
 
 In search by Jose, I wish return on top the documents (Jose | São 
 Paulo and Jose | Rio de Janeiro).

If all documents has a city and the number of cities is fairly low, you could 
add a boosting element to your query:
(Jose) and (city:Campinas^1 OR city:São\ Paulo^2 OR city:Cio\ de\
Janeiro^2 OR city:Rio\ Branco^1 OR city:Ourinhos)



Boosting in query level the relevance based in content of any fields

2012-09-28 Thread Claudio Ranieri
Hello,

How can I boost in query level the relevance of documents  based in content of 
any fields? Example, I have 5 documents with fields: name and city:

name | city
Jose | Campinas
Jose | São Paulo
Jose | Rio de Janeiro
Jose | Rio Branco
Jose | Ourinhos

In search by Jose, I wish return on top the documents (Jose | São Paulo and 
Jose | Rio de Janeiro). I don´t want create a third field important to sort.
I don´t want create the boosting based on id with elevate.xml
Is it possible boosting in query level the documents with city São Paulo or 
Rio de Janeiro?
Thanks,





RES: Boosting in query level the relevance based in content of any fields

2012-09-28 Thread Claudio Ranieri
With dismax / edixmax I can boost a field, but not boosting based on content of 
field (in my example, São Paulo and Rio de Janeiro must have boost, but 
Campinas, Rio Branco and Ourinhos not). Is it possible? 

-Mensagem original-
De: Miguel Ángel Martín [mailto:miguelangel.mar...@brainsins.com] 
Enviada em: sexta-feira, 28 de setembro de 2012 09:53
Para: solr-user@lucene.apache.org
Assunto: Re: Boosting in query level the relevance based in content of any 
fields

Hi c.

Recently, i was testing that issue, i use boost query in solr 3.6.1 with 
edixmax and works fine for me

Regards
El 28/09/2012 14:44, Claudio Ranieri claudio.rani...@estadao.com
escribió:

 Hello,

 How can I boost in query level the relevance of documents  based in 
 content of any fields? Example, I have 5 documents with fields: name 
 and
 city:

 name | city
 Jose | Campinas
 Jose | São Paulo
 Jose | Rio de Janeiro
 Jose | Rio Branco
 Jose | Ourinhos

 In search by Jose, I wish return on top the documents (Jose | São 
 Paulo and Jose | Rio de Janeiro). I don´t want create a third field 
 important
 to sort.
 I don´t want create the boosting based on id with elevate.xml Is it 
 possible boosting in query level the documents with city São Paulo
 or Rio de Janeiro?
 Thanks,






RES: RES: RES: Problem with accented words sorting

2012-09-11 Thread Claudio Ranieri
Ok Toke.
Thanks for your explanation.
This is an interesting feature to be implemented, because we can sort the 
results correctly, but not in the facets.
The facets also does not bring the total count for pagination.
I'm using the facets to get the distinct values ​​of a field. I wish to sort 
and pagination them.


-Mensagem original-
De: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] 
Enviada em: terça-feira, 11 de setembro de 2012 04:11
Para: solr-user@lucene.apache.org
Assunto: Re: RES: RES: Problem with accented words sorting

On Mon, 2012-09-10 at 16:04 +0200, Claudio Ranieri wrote:
 When I used the CollationKeyFilterFactory in my facet (example below), 
 the value of facet went wrong. When I remove the 
 CollationKeyFilterFactory of type of facet, the value went correct.

As Ahmed wrote, CollationKeyFilter is meant for sorting of the document result. 
It works by creating a key for each value. The key is, as you discovered, not 
meant for human eyes. When you do a sort on the collation field, the key is 
used for ordering and the original human-friendly text is taken from a stored 
field.
See https://wiki.apache.org/solr/UnicodeCollation

For faceting, the dual value approach does not work as there are no mapping 
from the key to the original value. There are several possible solutions to 
this (storing the original value together with the key seems sensible), but as 
far as I know, Solr does not currently support collator sorted faceting.

 Is it a bug?

No, it is a known (and significant IMO) limitation.



RES: RES: RES: RES: Problem with accented words sorting

2012-09-11 Thread Claudio Ranieri
Ok Toke,
Is it worth opening a ticket in jira to implement the collator-key + original 
in facet?

-Mensagem original-
De: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] 
Enviada em: terça-feira, 11 de setembro de 2012 08:46
Para: solr-user@lucene.apache.org
Assunto: Re: RES: RES: RES: Problem with accented words sorting

On Tue, 2012-09-11 at 12:14 +0200, Claudio Ranieri wrote:
 This is an interesting feature to be implemented, because we can sort 
 the results correctly, but not in the facets.

At work (State and University Library, Denmark) we use collator-ordered 
faceting for author  title, but out current implementation suffers from 
sorting upon index-open time. Roughly speaking this takes one minute per one 
million terms and since we have 10M documents, we're talking 10-15 minutes 
before a search can be performed.

The collator-key+original term-approach would take nearly the same time as 
standard index order faceting when opening the index.

 The facets also does not bring the total count for pagination. I'm 
 using the facets to get the distinct values ​​of a field. I wish to 
 sort and pagination them.

This seems to be the relevant JIRA issue:
https://issues.apache.org/jira/browse/SOLR-2242



Problem with accented words sorting

2012-09-10 Thread Claudio Ranieri
Hi,

I have a facet (type = string) and I want to sort it.
The problem is that accented words are appearing at the end of the sequence. 
Example sorted sequence: Santa Catarina, Sergipe, São Paulo.
I would like to get in order: Santa Catarina, São Paulo, Sergipe.
I can not normalize input because I want to show users the text is not 
normalized. Is there easy way to setup this?
If there is not easy way, how could I customize a comparable of String?
Thanks,
Thanks


RES: Problem with accented words sorting

2012-09-10 Thread Claudio Ranieri
I tried using solr.CollationKeyFilterFactory in my facets:

fieldType name=text_navegador_collation class=solr.TextField
analyzer
tokenizer class=solr.KeywordTokenizerFactory /
filter class=solr.CollationKeyFilterFactory language=en 
strength=primary /
/analyzer
/fieldType

I got this:

lst name=facet_counts
lst name=facet_queries/
lst name=facet_fields
lst name=nv_descricao_ue_nv_sigla_uf
int 
name=)䀖䀍#5;᠃᠁Ⰰ堀㌀ᓀఠٰʘŐ¦e*#20;怌倅᠂ࠁ䰀挀#0;#0;#1;16/int
int name=)䀖䀍#5;᠃᠁Ⰰ堀㌀ᓀీذˀŘÊb!#25;䀌 
#0;#0;#0;9/int
int name=)䀗怌瀆ဃ᠁☀愀㎀ᢀࡀՐˀ#0;#0;#1;4/int
int 
name=)䀘#12;々᠃ᐁ䐀嘀㄀ᦀ଀ِ̨Ō„`-#0;#0;#0;#0;6/int
int name=)䀙 
々⠃ࠁ㠀匀⨀ᓀી԰̰ŠÊe)䀐䀌怆᠀#0;#0;#0;14/int
/lst
/lst
lst name=facet_dates/
lst name=facet_ranges/
/lst

If I remove the solr.CollationKeyFilterFactory, I get:

lst name=facet_counts
lst name=facet_queries/
lst name=facet_fields
lst name=nv_descricao_ue_nv_sigla_uf
int name=ALTO SANTO|CE4/int
int name=AMPARO DO SERRA|MG6/int
int name=ARAÇOIABA DA SERRA|SP14/int
int name=BANDEIRA DO SUL|MG4/int
int name=BARRA DE SANTA ROSA|PB5/int
/lst
/lst
lst name=facet_dates/
lst name=facet_ranges/
/lst

Is it a bug of Solr?
I am using solr 3.5.0 (stable).
Would anyone help me?


-Mensagem original-
De: Claudio Ranieri [mailto:claudio.rani...@estadao.com] 
Enviada em: segunda-feira, 10 de setembro de 2012 08:29
Para: solr-user@lucene.apache.org
Assunto: Problem with accented words sorting

Hi,

I have a facet (type = string) and I want to sort it.
The problem is that accented words are appearing at the end of the sequence. 
Example sorted sequence: Santa Catarina, Sergipe, São Paulo.
I would like to get in order: Santa Catarina, São Paulo, Sergipe.
I can not normalize input because I want to show users the text is not 
normalized. Is there easy way to setup this?
If there is not easy way, how could I customize a comparable of String?
Thanks,
Thanks


RES: RES: Problem with accented words sorting

2012-09-10 Thread Claudio Ranieri
Hi Ahmet,

When I used the CollationKeyFilterFactory in my facet (example below), the 
value of facet went wrong.
When I remove the CollationKeyFilterFactory of type of facet, the value went 
correct.
Is it a bug?

-Mensagem original-
De: Ahmet Arslan [mailto:iori...@yahoo.com] 
Enviada em: segunda-feira, 10 de setembro de 2012 10:34
Para: solr-user@lucene.apache.org
Assunto: Re: RES: Problem with accented words sorting


Hi Claudio,

CollationKeyFilterFactory is meant to be used in sorting. If you need both 
language specific sorting and faceting, you need to make two copies of your 
field. (Easy with copyField declaration). 

--- On Mon, 9/10/12, Claudio Ranieri claudio.rani...@estadao.com wrote:

 From: Claudio Ranieri claudio.rani...@estadao.com
 Subject: RES: Problem with accented words sorting
 To: solr-user@lucene.apache.org solr-user@lucene.apache.org
 Date: Monday, September 10, 2012, 3:29 PM I tried using 
 solr.CollationKeyFilterFactory in my facets:
 
 fieldType name=text_navegador_collation
 class=solr.TextField
     analyzer
         tokenizer
 class=solr.KeywordTokenizerFactory /
         filter
 class=solr.CollationKeyFilterFactory language=en
 strength=primary /
     /analyzer
 /fieldType
 
 I got this:
 
 lst name=facet_counts
     lst name=facet_queries/
         lst
 name=facet_fields
            
 lst name=nv_descricao_ue_nv_sigla_uf
            
     int
 name=)䀖䀍#5;᠃᠁Ⰰ堀㌀ᓀఠٰʘŐ¦e*#20;怌倅᠂ࠁ䰀挀#0;#0;#1;16/int
            
     int
 name=)䀖䀍#5;᠃᠁Ⰰ堀㌀ᓀీذˀŘÊb!#25;䀌 #0;#0;#0;9/int
            
     int
 name=)䀗怌瀆ဃ᠁☀愀㎀ᢀࡀՐˀ#0;#0;#1;4/int
            
     int
 name=)䀘#12;々᠃ᐁ䐀嘀㄀ᦀ଀ِ̨Ō`-#0;#0;#0;#0;6/int
            
     int
 name=)䀙 々⠃ࠁ㠀匀⨀ᓀી԰̰ŠÊe)䀐䀌怆᠀#0;#0;#0;14/int
            
 /lst
         /lst
     lst name=facet_dates/
     lst name=facet_ranges/
 /lst
 
 If I remove the solr.CollationKeyFilterFactory, I get:
 
 lst name=facet_counts
     lst name=facet_queries/
         lst
 name=facet_fields
            
 lst name=nv_descricao_ue_nv_sigla_uf
            
     int name=ALTO
 SANTO|CE4/int
            
     int name=AMPARO DO
 SERRA|MG6/int
            
     int name=ARAÇOIABA DA
 SERRA|SP14/int
            
     int name=BANDEIRA DO
 SUL|MG4/int
            
     int name=BARRA DE SANTA
 ROSA|PB5/int
            
 /lst
         /lst
     lst name=facet_dates/
     lst name=facet_ranges/
 /lst
 
 Is it a bug of Solr?
 I am using solr 3.5.0 (stable).
 Would anyone help me?
 
 
 -Mensagem original-
 De: Claudio Ranieri [mailto:claudio.rani...@estadao.com]
 
 Enviada em: segunda-feira, 10 de setembro de 2012 08:29
 Para: solr-user@lucene.apache.org
 Assunto: Problem with accented words sorting
 
 Hi,
 
 I have a facet (type = string) and I want to sort it.
 The problem is that accented words are appearing at the end of the 
 sequence. Example sorted sequence: Santa Catarina, Sergipe, São 
 Paulo.
 I would like to get in order: Santa Catarina, São Paulo, 
 Sergipe.
 I can not normalize input because I want to show users the text is not 
 normalized. Is there easy way to setup this?
 If there is not easy way, how could I customize a comparable of 
 String?
 Thanks,
 Thanks
 


RES: Solr Not releasing memory

2012-09-03 Thread Claudio Ranieri
Are you using MMapDirectoryFactory? 
I had swap problem in linux to a big index when I used MMapDirectoryFactory.
You can to try use solr.NIOFSDirectoryFactory.


-Mensagem original-
De: Lance Norskog [mailto:goks...@gmail.com] 
Enviada em: domingo, 2 de setembro de 2012 22:00
Para: solr-user@lucene.apache.org
Assunto: Re: Solr Not releasing memory

1) I believe Java 1.7 release memory back to the OS.
2) All of the Javas I've used on Windows do this.

Is the physical memory use a problem? Does it push out all other programs?

Or is it just that the Java process appears larger? This explains the latter:
http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html

- Original Message -
| From: Rohit ro...@simplify360.com
| To: solr-user@lucene.apache.org
| Sent: Sunday, September 2, 2012 1:22:14 AM
| Subject: Solr Not releasing memory
| 
| Hi,
| 
|  
| 
| We are running solr3.5 using tomcal 6.26  on a Windows Enterprise RC2 
| server, our index size if pretty large.
| 
|  
| 
| We have noticed that once tomcat starts using/reserving ram it never 
| releases them, even when there is not a single user on the system.  I 
| have tried forced garbage collection, but that doesn't seem to help 
| either.
| 
|  
| 
| Regards,
| 
| Rohit
| 
|  
| 
| 


RES: Data Import Handler - Could not load driver - com.microsoft.sqlserver.jdbc.SQLServerDriver - SOLR 4 Beta

2012-08-28 Thread Claudio Ranieri
Hi Adam,

Try to add the parameter sharedLib=lib in $SOLR_HOME/solr.xml (solr 
persistent=true sharedLib=lib).
Copy all jars of Solr to $SOLR_HOME/lib (including the sqljdbc4.jar)
I already a problem with classloader in solr 4.0 and I solved with this 
configuration.


-Mensagem original-
De: awb3667 [mailto:adam.bu...@peopleclick.com] 
Enviada em: terça-feira, 28 de agosto de 2012 11:29
Para: solr-user@lucene.apache.org
Assunto: Re: Data Import Handler - Could not load driver - 
com.microsoft.sqlserver.jdbc.SQLServerDriver - SOLR 4 Beta

Correction. That DID work! Thanks everyone.
-Adam



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Data-Import-Handler-Could-not-load-driver-com-microsoft-sqlserver-jdbc-SQLServerDriver-SOLR-4-Beta-tp4002902p4003731.html
Sent from the Solr - User mailing list archive at Nabble.com.


RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

2012-08-27 Thread Claudio Ranieri
Can anyone help me?


-Mensagem original-
De: Claudio Ranieri [mailto:claudio.rani...@estadao.com] 
Enviada em: sexta-feira, 24 de agosto de 2012 11:40
Para: solr-user@lucene.apache.org
Assunto: RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

Hi Vadim,
No, I used the entire apache-solr-4.0.0-BETA\example\solr (schema.xml, 
solrconfig.xml ...)


-Mensagem original-
De: Vadim Kisselmann [mailto:v.kisselm...@gmail.com] Enviada em: sexta-feira, 
24 de agosto de 2012 07:26
Para: solr-user@lucene.apache.org
Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

a presumption:
do you use your old solrconfig.xml files from older installations?
when yes, compare the default config and yours.


2012/8/23 Claudio Ranieri claudio.rani...@estadao.com:
 I made this instalation on a new tomcat.
 With Solr 3.4.*, 3.5.*, 3.6.* works with jars into 
 $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I 
 needed to add the jars into $TOMCAT_HOME/lib.
 The problem with the cast seems to be in the source code.


 -Mensagem original-
 De: Karthick Duraisamy Soundararaj
 [mailto:karthick.soundara...@gmail.com]
 Enviada em: quinta-feira, 23 de agosto de 2012 09:22
 Para: solr-user@lucene.apache.org
 Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 
 where tomcat refused to find one of the classes that existed. I deleted the 
 tomcat's webapp directory and then it worked fine.

 On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson 
 erickerick...@gmail.comwrote:

 First, I'm no Tomcat expert here's the Tomcat Solr page, but 
 you've probably already seen it:
 http://wiki.apache.org/solr/SolrTomcat

 But I'm guessing that you may have old jars around somewhere and 
 things are getting confused. I'd blow away the whole thing and start 
 over, whenever I start copying jars around I always lose track of 
 what's where.

 Have you successfully had any other Solr operate under Tomcat?

 Sorry I can't be more help
 Erick

 On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri 
 claudio.rani...@estadao.com wrote:
  Hi,
 
  I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does 
  not
 work.
  I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps.
  Then I
 copied the directory apache-solr-4.0.0-BETA\example\solr to 
 C:\home\solr-4.0-beta and adjusted the file 
 $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to 
 point the solr/home to C:/home/solr-4.0-beta. With this 
 configuration, when I startup tomcat I got:
 
  SEVERE: org.apache.solr.common.SolrException: Invalid 
  luceneMatchVersion
 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, 
 LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, 
 LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in 
 format 'VV'
 
  So I changed the line in solrconfig.xml:
 
  luceneMatchVersionLUCENE_40/luceneMatchVersion
 
  to
 
  luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion
 
  So I got a new error:
 
  Caused by: java.lang.ClassNotFoundException:
 solr.NRTCachingDirectoryFactory
 
  This class is within the file apache-solr-core-4.0.0-BETA.jar but 
  for
 some reason classloader of the class is not loaded. I then moved all 
 jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to 
 $TOMCAT_HOME\lib.
  After this setup, I got a new error:
 
  SEVERE: java.lang.ClassCastException:
 org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to 
 org.apache.solr.core.DirectoryFactory
 
  So I changed the line in solrconfig.xml:
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/
 
  to
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/
 
  So I got a new error:
 
  Caused by: java.lang.ClassCastException:
 org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to 
 org.apache.solr.spelling.SolrSpellChecker
 
  How can I resolve the problem of classloader?
  How can I resolve the problem of cast of NRTCachingDirectoryFactory 
  and
 DirectSolrSpellChecker?
  I can not startup the solr 4.0 beta with tomcat.
  Thanks,
 
 
 
 




 --
 --
 Karthick D S
 Master's in Computer Engineering ( Software Track ) Syracuse 
 University Syracuse - 13210 New York United States of America


RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

2012-08-27 Thread Claudio Ranieri
I solved the problem.
I added the parameter sharedLib=lib in $SOLR_HOME/solr.xml (solr 
persistent=true sharedLib=lib) and moved all jars into 
$TOMCAT_HOME/webapps/solr/WEB-INF/lib to $SOLR_HOME/lib
This information could be included in the wiki Solr / Tomcat.

Claudio Ranieri | Especialista Sistemas de Busca | S.A O Estado de S.Paulo
Av. Eng. Caetano Álvares, 55 - Limão - São Paulo - SP - 02598-900
+ 55 11 3856-5790 | + 55 11 9344-2674





-Mensagem original-
De: Claudio Ranieri [mailto:claudio.rani...@estadao.com] 
Enviada em: segunda-feira, 27 de agosto de 2012 10:34
Para: solr-user@lucene.apache.org
Assunto: RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

Can anyone help me?


-Mensagem original-
De: Claudio Ranieri [mailto:claudio.rani...@estadao.com]
Enviada em: sexta-feira, 24 de agosto de 2012 11:40
Para: solr-user@lucene.apache.org
Assunto: RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

Hi Vadim,
No, I used the entire apache-solr-4.0.0-BETA\example\solr (schema.xml, 
solrconfig.xml ...)


-Mensagem original-
De: Vadim Kisselmann [mailto:v.kisselm...@gmail.com] Enviada em: sexta-feira, 
24 de agosto de 2012 07:26
Para: solr-user@lucene.apache.org
Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

a presumption:
do you use your old solrconfig.xml files from older installations?
when yes, compare the default config and yours.


2012/8/23 Claudio Ranieri claudio.rani...@estadao.com:
 I made this instalation on a new tomcat.
 With Solr 3.4.*, 3.5.*, 3.6.* works with jars into 
 $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I 
 needed to add the jars into $TOMCAT_HOME/lib.
 The problem with the cast seems to be in the source code.


 -Mensagem original-
 De: Karthick Duraisamy Soundararaj
 [mailto:karthick.soundara...@gmail.com]
 Enviada em: quinta-feira, 23 de agosto de 2012 09:22
 Para: solr-user@lucene.apache.org
 Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 
 where tomcat refused to find one of the classes that existed. I deleted the 
 tomcat's webapp directory and then it worked fine.

 On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson 
 erickerick...@gmail.comwrote:

 First, I'm no Tomcat expert here's the Tomcat Solr page, but 
 you've probably already seen it:
 http://wiki.apache.org/solr/SolrTomcat

 But I'm guessing that you may have old jars around somewhere and 
 things are getting confused. I'd blow away the whole thing and start 
 over, whenever I start copying jars around I always lose track of 
 what's where.

 Have you successfully had any other Solr operate under Tomcat?

 Sorry I can't be more help
 Erick

 On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri 
 claudio.rani...@estadao.com wrote:
  Hi,
 
  I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does 
  not
 work.
  I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps.
  Then I
 copied the directory apache-solr-4.0.0-BETA\example\solr to 
 C:\home\solr-4.0-beta and adjusted the file 
 $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to 
 point the solr/home to C:/home/solr-4.0-beta. With this 
 configuration, when I startup tomcat I got:
 
  SEVERE: org.apache.solr.common.SolrException: Invalid 
  luceneMatchVersion
 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, 
 LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, 
 LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in 
 format 'VV'
 
  So I changed the line in solrconfig.xml:
 
  luceneMatchVersionLUCENE_40/luceneMatchVersion
 
  to
 
  luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion
 
  So I got a new error:
 
  Caused by: java.lang.ClassNotFoundException:
 solr.NRTCachingDirectoryFactory
 
  This class is within the file apache-solr-core-4.0.0-BETA.jar but 
  for
 some reason classloader of the class is not loaded. I then moved all 
 jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to 
 $TOMCAT_HOME\lib.
  After this setup, I got a new error:
 
  SEVERE: java.lang.ClassCastException:
 org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to 
 org.apache.solr.core.DirectoryFactory
 
  So I changed the line in solrconfig.xml:
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/
 
  to
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/
 
  So I got a new error:
 
  Caused by: java.lang.ClassCastException:
 org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to 
 org.apache.solr.spelling.SolrSpellChecker
 
  How can I resolve the problem of classloader?
  How can I resolve the problem of cast of NRTCachingDirectoryFactory 
  and
 DirectSolrSpellChecker?
  I can not startup the solr 4.0 beta with tomcat.
  Thanks,
 
 
 
 




 --
 --
 Karthick D

RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

2012-08-24 Thread Claudio Ranieri
Hi Vadim,
No, I used the entire apache-solr-4.0.0-BETA\example\solr (schema.xml, 
solrconfig.xml ...)


-Mensagem original-
De: Vadim Kisselmann [mailto:v.kisselm...@gmail.com] 
Enviada em: sexta-feira, 24 de agosto de 2012 07:26
Para: solr-user@lucene.apache.org
Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

a presumption:
do you use your old solrconfig.xml files from older installations?
when yes, compare the default config and yours.


2012/8/23 Claudio Ranieri claudio.rani...@estadao.com:
 I made this instalation on a new tomcat.
 With Solr 3.4.*, 3.5.*, 3.6.* works with jars into 
 $TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I 
 needed to add the jars into $TOMCAT_HOME/lib.
 The problem with the cast seems to be in the source code.


 -Mensagem original-
 De: Karthick Duraisamy Soundararaj 
 [mailto:karthick.soundara...@gmail.com]
 Enviada em: quinta-feira, 23 de agosto de 2012 09:22
 Para: solr-user@lucene.apache.org
 Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

 Not sure if this can help. But once I had a similar problem with Solr 3.6.0 
 where tomcat refused to find one of the classes that existed. I deleted the 
 tomcat's webapp directory and then it worked fine.

 On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson 
 erickerick...@gmail.comwrote:

 First, I'm no Tomcat expert here's the Tomcat Solr page, but 
 you've probably already seen it:
 http://wiki.apache.org/solr/SolrTomcat

 But I'm guessing that you may have old jars around somewhere and 
 things are getting confused. I'd blow away the whole thing and start 
 over, whenever I start copying jars around I always lose track of 
 what's where.

 Have you successfully had any other Solr operate under Tomcat?

 Sorry I can't be more help
 Erick

 On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri 
 claudio.rani...@estadao.com wrote:
  Hi,
 
  I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does 
  not
 work.
  I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps.
  Then I
 copied the directory apache-solr-4.0.0-BETA\example\solr to 
 C:\home\solr-4.0-beta and adjusted the file 
 $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to 
 point the solr/home to C:/home/solr-4.0-beta. With this 
 configuration, when I startup tomcat I got:
 
  SEVERE: org.apache.solr.common.SolrException: Invalid 
  luceneMatchVersion
 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, 
 LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, 
 LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in 
 format 'VV'
 
  So I changed the line in solrconfig.xml:
 
  luceneMatchVersionLUCENE_40/luceneMatchVersion
 
  to
 
  luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion
 
  So I got a new error:
 
  Caused by: java.lang.ClassNotFoundException:
 solr.NRTCachingDirectoryFactory
 
  This class is within the file apache-solr-core-4.0.0-BETA.jar but 
  for
 some reason classloader of the class is not loaded. I then moved all 
 jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to 
 $TOMCAT_HOME\lib.
  After this setup, I got a new error:
 
  SEVERE: java.lang.ClassCastException:
 org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to 
 org.apache.solr.core.DirectoryFactory
 
  So I changed the line in solrconfig.xml:
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/
 
  to
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/
 
  So I got a new error:
 
  Caused by: java.lang.ClassCastException:
 org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to 
 org.apache.solr.spelling.SolrSpellChecker
 
  How can I resolve the problem of classloader?
  How can I resolve the problem of cast of NRTCachingDirectoryFactory 
  and
 DirectSolrSpellChecker?
  I can not startup the solr 4.0 beta with tomcat.
  Thanks,
 
 
 
 




 --
 --
 Karthick D S
 Master's in Computer Engineering ( Software Track ) Syracuse 
 University Syracuse - 13210 New York United States of America


RES: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

2012-08-23 Thread Claudio Ranieri
I made this instalation on a new tomcat.
With Solr 3.4.*, 3.5.*, 3.6.* works with jars into 
$TOMCAT_HOME/webapps/solr/WEB-INF/lib, but with solr 4.0 beta doesn´t work. I 
needed to add the jars into $TOMCAT_HOME/lib.
The problem with the cast seems to be in the source code. 


-Mensagem original-
De: Karthick Duraisamy Soundararaj [mailto:karthick.soundara...@gmail.com] 
Enviada em: quinta-feira, 23 de agosto de 2012 09:22
Para: solr-user@lucene.apache.org
Assunto: Re: Problem to start solr-4.0.0-BETA with tomcat-6.0.20

Not sure if this can help. But once I had a similar problem with Solr 3.6.0 
where tomcat refused to find one of the classes that existed. I deleted the 
tomcat's webapp directory and then it worked fine.

On Thu, Aug 23, 2012 at 8:19 AM, Erick Erickson erickerick...@gmail.comwrote:

 First, I'm no Tomcat expert here's the Tomcat Solr page, but 
 you've probably already seen it:
 http://wiki.apache.org/solr/SolrTomcat

 But I'm guessing that you may have old jars around somewhere and 
 things are getting confused. I'd blow away the whole thing and start 
 over, whenever I start copying jars around I always lose track of 
 what's where.

 Have you successfully had any other Solr operate under Tomcat?

 Sorry I can't be more help
 Erick

 On Wed, Aug 22, 2012 at 9:47 AM, Claudio Ranieri 
 claudio.rani...@estadao.com wrote:
  Hi,
 
  I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does not
 work.
  I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps. 
  Then I
 copied the directory apache-solr-4.0.0-BETA\example\solr to 
 C:\home\solr-4.0-beta and adjusted the file 
 $TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to 
 point the solr/home to C:/home/solr-4.0-beta. With this configuration, 
 when I startup tomcat I got:
 
  SEVERE: org.apache.solr.common.SolrException: Invalid 
  luceneMatchVersion
 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, 
 LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, 
 LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in 
 format 'VV'
 
  So I changed the line in solrconfig.xml:
 
  luceneMatchVersionLUCENE_40/luceneMatchVersion
 
  to
 
  luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion
 
  So I got a new error:
 
  Caused by: java.lang.ClassNotFoundException:
 solr.NRTCachingDirectoryFactory
 
  This class is within the file apache-solr-core-4.0.0-BETA.jar but 
  for
 some reason classloader of the class is not loaded. I then moved all 
 jars in $TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to 
 $TOMCAT_HOME\lib.
  After this setup, I got a new error:
 
  SEVERE: java.lang.ClassCastException:
 org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to 
 org.apache.solr.core.DirectoryFactory
 
  So I changed the line in solrconfig.xml:
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/
 
  to
 
  directoryFactory name=DirectoryFactory
 
 class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/
 
  So I got a new error:
 
  Caused by: java.lang.ClassCastException:
 org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to 
 org.apache.solr.spelling.SolrSpellChecker
 
  How can I resolve the problem of classloader?
  How can I resolve the problem of cast of NRTCachingDirectoryFactory 
  and
 DirectSolrSpellChecker?
  I can not startup the solr 4.0 beta with tomcat.
  Thanks,
 
 
 
 




--
--
Karthick D S
Master's in Computer Engineering ( Software Track ) Syracuse University 
Syracuse - 13210 New York United States of America


Problem to start solr-4.0.0-BETA with tomcat-6.0.20

2012-08-22 Thread Claudio Ranieri
Hi,

I tried to start the solr-4.0.0-BETA with tomcat-6.0.20 but does not work.
I copied the apache-solr-4.0.0-BETA.war to $TOMCAT_HOME/webapps. Then I copied 
the directory apache-solr-4.0.0-BETA\example\solr to C:\home\solr-4.0-beta and 
adjusted the file 
$TOMCAT_HOME\conf\Catalina\localhost\apache-solr-4.0.0-BETA.xml to point the 
solr/home to C:/home/solr-4.0-beta. With this configuration, when I startup 
tomcat I got:

SEVERE: org.apache.solr.common.SolrException: Invalid luceneMatchVersion 
'LUCENE_40', valid values ​​are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, 
LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_34, 
LUCENE_35, LUCENE_36, LUCENE_CURRENT ] or a string in format 'VV'

So I changed the line in solrconfig.xml:

luceneMatchVersionLUCENE_40/luceneMatchVersion

to

luceneMatchVersionLUCENE_CURRENT/luceneMatchVersion

So I got a new error:

Caused by: java.lang.ClassNotFoundException: solr.NRTCachingDirectoryFactory

This class is within the file apache-solr-core-4.0.0-BETA.jar but for some 
reason classloader of the class is not loaded. I then moved all jars in 
$TOMCAT_HOME\webapps\apache-solr-4.0.0-BETA\WEB-INF\lib to $TOMCAT_HOME\lib.
After this setup, I got a new error:

SEVERE: java.lang.ClassCastException: 
org.apache.solr.core.NRTCachingDirectoryFactory can not be cast to 
org.apache.solr.core.DirectoryFactory

So I changed the line in solrconfig.xml:

directoryFactory name=DirectoryFactory

class=${solr.directoryFactory:solr.NRTCachingDirectoryFactory}/

to

directoryFactory name=DirectoryFactory

class=${solr.directoryFactory:solr.NIOFSDirectoryFactory}/

So I got a new error:

Caused by: java.lang.ClassCastException: 
org.apache.solr.spelling.DirectSolrSpellChecker can not be cast to 
org.apache.solr.spelling.SolrSpellChecker

How can I resolve the problem of classloader?
How can I resolve the problem of cast of NRTCachingDirectoryFactory and 
DirectSolrSpellChecker?
I can not startup the solr 4.0 beta with tomcat.
Thanks,