Problem using custom-separator in UpdateCSV ( in solr )

2012-01-08 Thread prasenjit mukherjee
I am trying to add document to a slor index via : $> curl "http://localhost:8983/solr/update/csv?commit=true&fieldnames=id,title_s&separator=%09"; --data "Doc1\tTitle1" -H 'Content-type:text/plain; charset=utf-8' Solr doesn't seem to recognize the \t in the content, and is failing with followin

Re: Problem using custom-separator in UpdateCSV ( in solr )

2012-01-08 Thread Erik Hatcher
\t doesn't work in my shell as a tab replacement character. And Solr doesn't expand this sort of thing for you. $ echo "foo\tbar" foo\tbar Try a real tab character instead. Though more realistically you'll be using a file instead, so you won't have to be concerned with a shell for this.

Re: Strategy for large index files

2012-01-08 Thread Ian Lea
Read the FAQ. http://wiki.apache.org/lucene-java/LuceneFAQ -- Ian. On Sun, Jan 8, 2012 at 5:32 AM, Cheng wrote: > Hi, my servlet application is running a large index of 20G. I don't think > it can be loaded to RAM at one time. > > What are the general strategies to improve the search and write

Re: Strategy for large index files

2012-01-08 Thread Petite Abeille
On Jan 8, 2012, at 6:32 AM, Cheng wrote: > Hi, my servlet application is running a large index of 20G. I don't think > it can be loaded to RAM at one time. > > What are the general strategies to improve the search and write performance? Got money? http://www.ramsan.com/ http://www.fusionio.co

Build RAMDirectory on FSDirectory, and then synchronzing the two

2012-01-08 Thread Cheng
Hi, I new a RAMDirectory based upon a FSDirectory. After a few modifications, I would like to synchronize the two. Some on the mailing list provided a solution that uses addIndex() function. However, the FSDirectory simply combines with the RAMDirectory, and the size doubled. How can I do a rea

Re:Build RAMDirectory on FSDirectory, and then synchronzing the two

2012-01-08 Thread dyzc
I'd better provide a snapshot of my code for people to understand my issues: File file=new File("c:/index_files"); FSDirectory fsDir=new FSDirectory(file); RAMDirectory ramDir=new RAMDirectory(fsDir, new IndexWriterConfig(Version.LUCENE_35, new StandardAnalyzer()); IndexWriter iw = new IndexWr

How to merge indices in ram

2012-01-08 Thread dyzc2010
Hi, How can I merge multiple indices in RAM while not impacting search? Thanks