Re: Batch Update Fields

2010-12-05 Thread Adam Estrada
OK so the way I understand this is that if there is a synonym on a specific
field at index time, that value will be stored rather than the one in the
csv that I am indexing? I will give it a whirl and report back...

Thanks!
Adam

On Sat, Dec 4, 2010 at 2:27 PM, Erick Erickson wrote:

> When you define your fieldType at index time. My idea
> was that you substitue these on the way in to your
> index. You may need a specific field type just for your
> country conversion Perhaps in a copyField if
> you need both the code and full name
>
> Best
> Erick
>
> On Sat, Dec 4, 2010 at 12:16 PM, Adam Estrada <
> estrada.adam.gro...@gmail.com
> > wrote:
>
> > Synonyms eh? I have a synonym list like the following so how do I
> identify
> > the synonyms on a specific field. The only place the field is used is as
> a
> > facet.
> >
> > original field => country name
> >
> > AF => AFGHANISTAN
> > AX => ÅLAND ISLANDS
> > AL => ALBANIA
> > DZ => ALGERIA
> > AS => AMERICAN SAMOA
> > AD => ANDORRA
> > AO => ANGOLA
> > AI => ANGUILLA
> > AQ => ANTARCTICA
> > AG => ANTIGUA AND BARBUDA
> > AR => ARGENTINA
> > AM => ARMENIA
> > AW => ARUBA
> > AU => AUSTRALIA
> > AT => AUSTRIA
> > etc...
> >
> > Any advise on that would be great and very much appreciated!
> >
> > Adam
> >
> > On Fri, Dec 3, 2010 at 3:55 PM, Erick Erickson  > >wrote:
> >
> > > That will certainly work. Another option, assuming the country codes
> are
> > > in their own field would be to put the transformations into a synonym
> > file
> > > that was only used on that field. That way you'd get this without
> having
> > > to do the pre-process step of the raw data...
> > >
> > > That said, if you pre-processing is working for you it may  not be
> worth
> > > your while
> > > to worry about doing it differently
> > >
> > > Best
> > > Erick
> > >
> > > On Fri, Dec 3, 2010 at 12:51 PM, Adam Estrada <
> > > estrada.adam.gro...@gmail.com
> > > > wrote:
> > >
> > > > First off...I know enough about Solr to be VERY dangerous so please
> > bare
> > > > with me ;-) I am indexing the geonames database which only provides
> > > country
> > > > codes. I can facet the codes but to the end user who may not know all
> > 249
> > > > codes, it isn't really all that helpful. Therefore, I want to map the
> > > full
> > > > country names to the country codes provided in the geonames db.
> > > > http://download.geonames.org/export/dump/
> > > >
> > > > I used a simple split
> > > function
> > > > to
> > > > chop the 850 meg txt file in to manageable csv's that I can import in
> > to
> > > > Solr. Now that all 7 million + documents are in there, I want to
> change
> > > the
> > > > country codes to the actual country names. I would of liked to have
> > done
> > > it
> > > > in the index but finding and replacing the strings in the csv seems
> to
> > be
> > > > working fine. After that I can just reindex the entire thing.
> > > >
> > > > Adam
> > > >
> > > > On Fri, Dec 3, 2010 at 12:42 PM, Erick Erickson <
> > erickerick...@gmail.com
> > > > >wrote:
> > > >
> > > > > Have you consider defining synonyms for your code <->country
> > > > > conversion at index time (or query time for that matter)?
> > > > >
> > > > > We may have an XY problem here. Could you state the high-level
> > > > > problem you're trying to solve? Maybe there's a better solution...
> > > > >
> > > > > Best
> > > > > Erick
> > > > >
> > > > > On Fri, Dec 3, 2010 at 12:20 PM, Adam Estrada <
> > > > > estrada.adam.gro...@gmail.com
> > > > > > wrote:
> > > > >
> > > > > > I wonder...I know that sed would work to find and replace the
> terms
> > > in
> > > > > all
> > > > > > of the csv files that I am indexing but would it work to find and
> > > > replace
> > > > > > key terms in the index?
> > > > > >
> > > > > > find C:\\tmp\\index\\data -type f -exec sed -i
> 's/AF/AFGHANISTAN/g'
> > > {}
> > > > \;
> > > > > >
> > > > > > That command would iterate through all the files in the data
> > > directory
> > > > > and
> > > > > > replace the country code with the full country name. I many just
> > back
> > > > up
> > > > > > the
> > > > > > directory and try it. I have it running on csv files right now
> and
> > > it's
> > > > > > working wonderfully. For those of you interested, I am indexing
> the
> > > > > entire
> > > > > > Geonames dataset
> > > > > http://download.geonames.org/export/dump/(allCountries.zip)
> > > > > > which gives me a pretty comprehensive world gazetteer. My next
> step
> > > is
> > > > > > gonna
> > > > > > be to display the results as KML to view over a google globe.
> > > > > >
> > > > > > Thoughts?
> > > > > >
> > > > > > Adam
> > > > > >
> > > > > > On Fri, Dec 3, 2010 at 7:57 AM, Erick Erickson <
> > > > erickerick...@gmail.com
> > > > > > >wrote:
> > > > > >
> > > > > > > No, there's no equivalent to SQL update for all values in a
> > column.
> > > > > > You'll
> > > > > > > have to reindex all the documents.
> > > > > > >
> > > > > > > On Thu, 

Dataimport: Could not load driver: com.mysql.jdbc.Driver

2010-12-05 Thread Ruixiang Zhang
*I got the following error for dataimport:*

*Full Import failed
org.apache.solr.handler.dataimport.DataImportHandlerException: Could not
load driver: com.mysql.jdbc.Driver*

I have the following files:

\example-DIH\solr\db\conf\   solrconfig.xml, schema.xml, db-data-config.xml,
dataimport.properties
\example-DIH\solr\db\lib\   mysql-connector-java-5.1.13-bin.jar



*I put this code to solrconfig.xml:*

   

db-data-config.xml

  

*And these in db-data-config.xml:*




  
  





  




Solr server has been restarted after these change.


Any hint or suggestions will be appreciated!!!

Thanks
Richard


Re: Dataimport: Could not load driver: com.mysql.jdbc.Driver

2010-12-05 Thread Koji Sekiguchi

(10/12/05 18:38), Ruixiang Zhang wrote:

*I got the following error for dataimport:*

*Full Import failed
org.apache.solr.handler.dataimport.DataImportHandlerException: Could not
load driver: com.mysql.jdbc.Driver*

I have the following files:

\example-DIH\solr\db\conf\   solrconfig.xml, schema.xml, db-data-config.xml,
dataimport.properties
\example-DIH\solr\db\lib\   mysql-connector-java-5.1.13-bin.jar


I guess the problem is the permission of the driver file?

Koji
--
http://www.rondhuit.com/en/


Re: Dataimport: Could not load driver: com.mysql.jdbc.Driver

2010-12-05 Thread Ruixiang Zhang
Thanks Koji.

I just tried to change the permission of the driver file to 777, still can
not found the driver.

I put the driver into the folder with the original driver is and deleted the
original one. I don't know why solr can find the original one (if I don't
change anything), but not this one.

Thanks
Richard


On Sun, Dec 5, 2010 at 2:46 AM, Koji Sekiguchi  wrote:

> (10/12/05 18:38), Ruixiang Zhang wrote:
>
>> *I got the following error for dataimport:*
>>
>>
>> *Full Import failed
>> org.apache.solr.handler.dataimport.DataImportHandlerException: Could not
>> load driver: com.mysql.jdbc.Driver*
>>
>> I have the following files:
>>
>> \example-DIH\solr\db\conf\   solrconfig.xml, schema.xml,
>> db-data-config.xml,
>> dataimport.properties
>> \example-DIH\solr\db\lib\   mysql-connector-java-5.1.13-bin.jar
>>
>
> I guess the problem is the permission of the driver file?
>
> Koji
> --
> http://www.rondhuit.com/en/
>


Re: Dataimport: Could not load driver: com.mysql.jdbc.Driver

2010-12-05 Thread Ruixiang Zhang
And here are the logs:


Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImportHandler
processConfiguration
INFO: Processing configuration from solrconfig.xml:
{config=db-data-config.xml}
Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
loadDataConfig
INFO: Data Configuration loaded successfully
Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
verifyWithSchema
INFO: The field :title present in DataConfig does not have a counterpart in
Solr Schema
Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
verifyWithSchema
INFO: The field :url present in DataConfig does not have a counterpart in
Solr Schema
Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
doFullImport
INFO: Starting Full Import
Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.SolrWriter
readIndexerProperties
INFO: Read dataimport.properties
Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
doFullImport
SEVERE: Full Import failed
*org.apache.solr.handler.dataimport.DataImportHandlerException: Could not
load driver: com.mysql.jdbc.Driver* Processing Document # 1
at
org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:72)
at
org.apache.solr.handler.dataimport.JdbcDataSource.createConnectionFactory(JdbcDataSource.java:114)
at
org.apache.solr.handler.dataimport.JdbcDataSource.init(JdbcDataSource.java:62)
at
org.apache.solr.handler.dataimport.DataImporter.getDataSourceInstance(DataImporter.java:304)
at
org.apache.solr.handler.dataimport.ContextImpl.getDataSource(ContextImpl.java:94)
at
org.apache.solr.handler.dataimport.SqlEntityProcessor.init(SqlEntityProcessor.java:52)
at
org.apache.solr.handler.dataimport.EntityProcessorWrapper.init(EntityProcessorWrapper.java:71)
at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:319)
at
org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:242)
at
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:180)
at
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:331)
at
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:389)
at
org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:203)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
*Caused by: java.lang.ClassNotFoundException: Unable to load
com.mysql.jdbc.Driver or
org.apache.solr.handler.dataimport.com.mysql.jdbc.Driver*
at
org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:738)
at
org.apache.solr.handler.dataimport.JdbcDataSource.createConnectionFactory(JdbcDataSource.java:112)
... 32 more
Caused by: org.apache.solr.common.SolrException: Error loading class
'com.mysql.jdbc.Driver'
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:375)
at
org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:728)
... 33 more
*Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver*
at java.net.URLClassLoader$1.r

ExtractingRequestHandler configuration

2010-12-05 Thread alessandro.ri...@virgilio.it
 Hi All,
I added to my solr 1.4.1 instance the ExtractingRequestHandler with the default 
configuration that I found on the wiki 
(http://wiki.apache.org/solr/ExtractingRequestHandler).



  last_modified
  ignored_






  

now when I injest via solrj api the html and pdf document I can find in the 
solr indexes document like that:


stored/uncompressed,indexed,tokenized
stored/uncompressed,indexed,omitNorms

stored/uncompressed,indexed,tokenized
stored/uncompressed,indexed,tokenized
stored/uncompressed,indexed,omitNorms


How can I add the configuration to strip the PDF/HTML content  and add it to 
the content field?
In order to update the a document in the index, Is it possible to inject 
multiple binary object with the same pid? 

Regards
Alessandro


 

Re: Full text hit term highlighting

2010-12-05 Thread Rich Cariens
Thanks Lance.  I'm storing the original document and indexing all it's
extracted content, but I need to be able to high-light the text within it's
original markup.  I'm going to give Uwe's suggestion a go.

On Sat, Dec 4, 2010 at 7:18 PM, Lance Norskog  wrote:

> Set the fragment length to 0. This means highlight the entire text
> body. If, you have stored the text body.
>
> Otherwise, you have to get the term vectors somehow and highlight the
> text yourself.
>
> I investigated this problem awhile back for PDFs. You can add a
> starting page and an OR list of search terms to the URL that loads a
> PDF into the in-browser version of the Adobe PDF reader. This allows
> you to load the PDF at the first occurence of any of the search terms,
> with the terms highlighted. The search button takes you to the next of
> any of the terms.
>
> On Sat, Dec 4, 2010 at 4:10 PM, Rich Cariens 
> wrote:
> > Anyone ever use Solr to present a view of a document with hit-terms
> > highlighted within?  Kind of like Google's cached  >copies?
> >
>
>
>
> --
> Lance Norskog
> goks...@gmail.com
>


RE: finding exact case insensitive matches on single and multiword values

2010-12-05 Thread PeterKerk

Alright guys, thanks!

I went for storing everything lowercase in DB. I also lowercased all solr
queries and only on client for UX purposes I applied the proper casing
logic.

Thanks for suggestions!
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/finding-exact-case-insensitive-matches-on-single-and-multiword-values-tp2012207p2022834.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Full text hit term highlighting

2010-12-05 Thread Jonathan Rochkind
That suggestion says "This works, as long as you don't need query 
highlighting."  Have you found a way around that, or have you decided not to 
use highlighting after all?  Or am I missing something?

From: Rich Cariens [richcari...@gmail.com]
Sent: Sunday, December 05, 2010 10:58 AM
To: solr-user@lucene.apache.org
Subject: Re: Full text hit term highlighting

Thanks Lance.  I'm storing the original document and indexing all it's
extracted content, but I need to be able to high-light the text within it's
original markup.  I'm going to give Uwe's suggestion a go.

On Sat, Dec 4, 2010 at 7:18 PM, Lance Norskog  wrote:

> Set the fragment length to 0. This means highlight the entire text
> body. If, you have stored the text body.
>
> Otherwise, you have to get the term vectors somehow and highlight the
> text yourself.
>
> I investigated this problem awhile back for PDFs. You can add a
> starting page and an OR list of search terms to the URL that loads a
> PDF into the in-browser version of the Adobe PDF reader. This allows
> you to load the PDF at the first occurence of any of the search terms,
> with the terms highlighted. The search button takes you to the next of
> any of the terms.
>
> On Sat, Dec 4, 2010 at 4:10 PM, Rich Cariens 
> wrote:
> > Anyone ever use Solr to present a view of a document with hit-terms
> > highlighted within?  Kind of like Google's cached  >copies?
> >
>
>
>
> --
> Lance Norskog
> goks...@gmail.com
>


Re: boosting certain docs based on a filed value

2010-12-05 Thread abhayd

great..

one last question
I am using dismax.

when i add this to bf in solrconfig.xml it give me errors when executing



 dismax
 explicit

 
text^2.5 features^10 displayName^5.0 mfg^3.0 description^3.0
 
 
text^0.2 features^1.1 displayName^5.0 mfg^3.0 mfg_exact^1.9
 
 
recip(rord(mfg),1,1000,1000)^0.3 paymentType:postpaid^8.5
 
..
   
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/boosting-certain-docs-based-on-a-filed-value-tp2012962p2024324.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full text hit term highlighting

2010-12-05 Thread Rich Cariens
Uwe goes on to say:


> This works, as long as you don't need query highlighting, because the offsets 
> from the first field addition cannot be used for highlighting inside the text 
> with markup. *In this case, you have to write your own analyzer that removes 
> the markup in the tokenizer, but preserves the original offsets. *Examples of 
> this are e.g. The Wikipedia contrib in Lucene, which has an hand-crafted 
> analyzer that can handle Mediawiki Markup syntax.
>
>

On Sun, Dec 5, 2010 at 3:35 PM, Jonathan Rochkind  wrote:

> That suggestion says "This works, as long as you don't need query
> highlighting."  Have you found a way around that, or have you decided not to
> use highlighting after all?  Or am I missing something?
> 
> From: Rich Cariens [richcari...@gmail.com]
> Sent: Sunday, December 05, 2010 10:58 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Full text hit term highlighting
>
> Thanks Lance.  I'm storing the original document and indexing all it's
> extracted content, but I need to be able to high-light the text within it's
> original markup.  I'm going to give Uwe's suggestion a
> go.
>
> On Sat, Dec 4, 2010 at 7:18 PM, Lance Norskog  wrote:
>
> > Set the fragment length to 0. This means highlight the entire text
> > body. If, you have stored the text body.
> >
> > Otherwise, you have to get the term vectors somehow and highlight the
> > text yourself.
> >
> > I investigated this problem awhile back for PDFs. You can add a
> > starting page and an OR list of search terms to the URL that loads a
> > PDF into the in-browser version of the Adobe PDF reader. This allows
> > you to load the PDF at the first occurence of any of the search terms,
> > with the terms highlighted. The search button takes you to the next of
> > any of the terms.
> >
> > On Sat, Dec 4, 2010 at 4:10 PM, Rich Cariens 
> > wrote:
> > > Anyone ever use Solr to present a view of a document with hit-terms
> > > highlighted within?  Kind of like Google's cached <
> http://bit.ly/hgudWq
> > >copies?
> > >
> >
> >
> >
> > --
> > Lance Norskog
> > goks...@gmail.com
> >
>


Re: boosting certain docs based on a filed value

2010-12-05 Thread Ahmet Arslan
> 
> great..
> 
> one last question
> I am using dismax.
> 
> when i add this to bf in solrconfig.xml it give me errors
> when executing
> 
>  >
>     
>       name="defType">dismax
>       name="echoParams">explicit
> 
>      
>         text^2.5 features^10
> displayName^5.0 mfg^3.0 description^3.0
>      
>      
>         text^0.2 features^1.1
> displayName^5.0 mfg^3.0 mfg_exact^1.9
>      
>      
>        
> recip(rord(mfg),1,1000,1000)^0.3 paymentType:postpaid^8.5
>      
> ..
>    


You need to  use bq parameter. 

http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29

 paymentType:postpaid^8.5





Re: Dataimport: Could not load driver: com.mysql.jdbc.Driver

2010-12-05 Thread Ruixiang Zhang
Hi Koji

I finally found the reason for this problem:

I download the tar file of the driver and unzip it in windows. Then I put
the jar file into the server. I don' t know why, but it doesn't work. It
works when I put the tar file and unzip it in the server.

Thanks a lot for your time!!!
Richard



On Sun, Dec 5, 2010 at 3:02 AM, Ruixiang Zhang  wrote:

> And here are the logs:
>
>
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImportHandler
> processConfiguration
> INFO: Processing configuration from solrconfig.xml:
> {config=db-data-config.xml}
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
> loadDataConfig
> INFO: Data Configuration loaded successfully
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
> verifyWithSchema
> INFO: The field :title present in DataConfig does not have a counterpart in
> Solr Schema
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
> verifyWithSchema
> INFO: The field :url present in DataConfig does not have a counterpart in
> Solr Schema
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
> doFullImport
> INFO: Starting Full Import
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.SolrWriter
> readIndexerProperties
> INFO: Read dataimport.properties
> Dec 5, 2010 2:00:23 AM org.apache.solr.handler.dataimport.DataImporter
> doFullImport
> SEVERE: Full Import failed
> *org.apache.solr.handler.dataimport.DataImportHandlerException: Could not
> load driver: com.mysql.jdbc.Driver* Processing Document # 1
> at
> org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:72)
> at
> org.apache.solr.handler.dataimport.JdbcDataSource.createConnectionFactory(JdbcDataSource.java:114)
> at
> org.apache.solr.handler.dataimport.JdbcDataSource.init(JdbcDataSource.java:62)
> at
> org.apache.solr.handler.dataimport.DataImporter.getDataSourceInstance(DataImporter.java:304)
> at
> org.apache.solr.handler.dataimport.ContextImpl.getDataSource(ContextImpl.java:94)
> at
> org.apache.solr.handler.dataimport.SqlEntityProcessor.init(SqlEntityProcessor.java:52)
> at
> org.apache.solr.handler.dataimport.EntityProcessorWrapper.init(EntityProcessorWrapper.java:71)
> at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:319)
> at
> org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:242)
> at
> org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:180)
> at
> org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:331)
> at
> org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:389)
> at
> org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:203)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
> at
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at
> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> *Caused by: java.lang.ClassNotFoundException: Unable to load
> com.mysql.jdbc.Driver or
> org.apache.solr.handler.dataimport.com.mysql.jdbc.Driver*
> at
> org.apache.solr.handler.dataimport.DocBuilder.loadClass

Solr -File Based Spell Check

2010-12-05 Thread rajini maski
How does the solr file based spell check work?

How do we need to enter data in the spelling.txt...I am not clear about its
functionality..If anyone know..Please reply.

I want to index a word = Wear
But while searching I search as =Dress
I want to get results for Wear.. How do i apply this functionality..

Awaiting Reply