SpellChecker : not getting suggestions for misspelled words

2011-11-08 Thread Dali
Hello everyone !

I'm new to Solr and i'm facing a huge problem since yesterday with the
SpellChecker component in Solr.
I followed instructions in the wiki page, browsed forums and i don't get any
result when typing a misspelled word like other people.

Here is what i have:
 *schema.xml :*


















...

...


*solrconfig.xml*:

 
 
   explicit
   
   velocity
   browse
   layout
   Solritas
   edismax
   *:*
   10
   *,score
   
 pr_name^0.5 pr_infGenDesc^1.0 pr_OS^1.2 pr_plus^1.5 pr_techno^10.0
pr_moins^1.1 
   
   text,features,name,sku,id,manu,cat
   3

   
  pr_name^0.5 pr_infGenDesc^1.0 pr_OS^1.2 pr_plus^1.5 pr_techno^10.0
pr_moins^1.1
   
   on
   cat
   manu_exact
   ipod
   GB
   1
   cat,inStock
   price
   0
   600
   50
   after
   manufacturedate_dt
   NOW/YEAR-10YEARS
   NOW
   +1YEAR
   before
   after
   
   on
   text features name
   0
   name
 
 
   spellcheck
 
 
  

...


textSpell

  default
  name
  spellchecker

   
 jarowinkler
 spell
 org.apache.lucene.search.spell.JaroWinklerDistance
 spellcheckerJaro
 true 
 true
   


And here is what i'm typing:
http://localhost:8080/solr/select/?q=pr_name:sonadr&spellcheck=true&spellcheck.build=true
http://localhost:8080/solr/select/?q=pr_name:sonadr&spellcheck=true&spellcheck.build=true
 

and the correct pr_name value (which is indexed) is "Sonar"

Any suggestions ?


--
View this message in context: 
http://lucene.472066.n3.nabble.com/SpellChecker-not-getting-suggestions-for-misspelled-words-tp3490004p3490004.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: SpellChecker : not getting suggestions for misspelled words

2011-11-09 Thread Dali
You're right James ! It was the solution and i can get suggestions now after
increasing spellcheck.count to 20.
I also made some change at the URL :
http://localhost:8080/solr/spell/?q=pr_name:sonadr&spellcheck=true&spellcheck.build=true
instead of:
http://localhost:8080/solr/select/?q=pr_name:sonadr&spellcheck=true&spellcheck.build=true

Dali

--
View this message in context: 
http://lucene.472066.n3.nabble.com/SpellChecker-not-getting-suggestions-for-misspelled-words-tp3490004p3493762.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem with pdf files indexing

2011-11-22 Thread Dali
Hi !I'm using solr 3.3 version and i have some pdf files which i want to
index. I followed instructions from the wiki page:
http://wiki.apache.org/solr/ExtractingRequestHandler
The problem is that i can add my documents to Solr but i cannot request
them. Here is what i have:

*solrconfig.xml*:


  text
  true
  ignored_
  true
  links
  ignored_

  

*schema.xml *:

 
  

*data-config.xml* :
 ...

...
 




...

I use Solrj to add documents as follows:
SolrServer server = new CommonsHttpSolrServer("http://localhost:8080/solr";);
   ContentStreamUpdateRequest up = new
ContentStreamUpdateRequest("/update/extract");
   up.addFile(new File("d:\\test.pdf"));
   up.setParam("literal.id", "test");
   up.setParam("extractOnly", "true");
   server.commit();
   NamedList result = server.request(up);
   System.out.println("Result: " + result);  // can display information
about test.pdf
   QueryResponse rsp = server.query( new SolrQuery( "*:*") );
   System.out.println("rsp: " + rsp); // returns nothing

Any suggestion?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-pdf-files-indexing-tp3527202p3527202.html
Sent from the Solr - User mailing list archive at Nabble.com.


DataImportHandler under Tomcat

2011-08-18 Thread Dali
Hello everybody,

I'm using solr 1.4.1 under tomcat 6.0.32 and i well configured
(data-config.xml, solrconfig.xml and schema.xml)
as described in the wiki to index data from mysql database. But when i
access dataimport console, i'm getting a screen divided in two parts:
 -One at the left side displaying a dataimport console not loading the
data-config.xml.
 -The other one at the right side displaying this message:

null java.lang.AbstractMethodError at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:864)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1665)
at java.lang.Thread.run(Thread.java:662) 

Please Help ! I didn't find this problem on the web

--
View this message in context: 
http://lucene.472066.n3.nabble.com/DataImportHandler-under-Tomcat-tp3264142p3264142.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: DataImportHandler under Tomcat

2011-08-18 Thread Dali
It's likely to be a problem of version. I turned out to solr 3.3.0 and it
works fine :)

--
View this message in context: 
http://lucene.472066.n3.nabble.com/DataImportHandler-under-Tomcat-tp3264142p3264239.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: get update record from database using DIH

2011-08-18 Thread Dali
Hello

Take a look at the delta import example :
http://wiki.apache.org/solr/DataImportHandler
http://wiki.apache.org/solr/DataImportHandler 

Regards

--
View this message in context: 
http://lucene.472066.n3.nabble.com/get-update-record-from-database-using-DIH-tp3264126p3264393.html
Sent from the Solr - User mailing list archive at Nabble.com.