RE: Case insensitive sortable column

2011-10-11 Thread Zhang, Lisheng
Hi, Another solution would be to define locale when creating SortField object, if using English locale the sorting should be case insensitive? Best regards, Lisheng -Original Message- From: Senthil V S [mailto:vss...@gmail.com] Sent: Tuesday, October 11, 2011 12:34 PM To: java-user@lucen

Re: Shingles Filter problems

2011-10-11 Thread Peyman Faratin
Hi Ian i think i found out the problem (from tests here http://www.devdaily.com/java/jwarehouse/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/ShingleAnalyzerWrapperTest.java.shtml) if you generate the query as a BooleanQuery then it seems to work. The following wor

Re: Shingles Filter problems

2011-10-11 Thread Ian Lea
Something does appear dodgy here. Using 3.4.0 the following very simple code, with no custom classes ShingleAnalyzerWrapper saw = new ShingleAnalyzerWrapper(LUCENE_34); QueryParser qp = new QueryParser(LUCENE_34, "t", saw); String s = "simple sentences rule"; Query

Re: Case insensitive sortable column

2011-10-11 Thread Senthil V S
Yeah.. Thanks.. That should work.. :) Senthil V S Y!: siliconsenthil2003,GTalk:vss123 On Wed, Oct 12, 2011 at 12:15 AM, Sendros, Jason < jason.send...@verizonwireless.com> wrote: > If that's not an option, create another column with the same data > lowercas

RE: Case insensitive sortable column

2011-10-11 Thread Sendros, Jason
If that's not an option, create another column with the same data lowercased and search on the new column while displaying the original column. Jason -Original Message- From: Greg Bowyer [mailto:gbow...@shopzilla.com] Sent: Tuesday, October 11, 2011 10:43 PM To: java-user@lucene.apache.o

Re: Case insensitive sortable column

2011-10-11 Thread Greg Bowyer
I might be missing something here but cant you just lowercase during indexing ? On 11/10/11 09:48, Senthil V S wrote: Hi, I'm new to Lucene. I have records and I wanna sort them by fields. I've created indexes for those fields with 'not_analyzed'. The sort is case sensitive. In a sense, *A...*

Re: Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-11 Thread Chris Lu
You need to analyze the search keyword with the same analyzer that's applied on the "content" field. -- Chris Lu - Instant Scalable Full-Text Search On Any Database/Application site: http://www.dbsight.net demo: http://search.dbsight.com Lucene Database Search in 3 minutes

Shingles Filter problems

2011-10-11 Thread Peyman Faratin
Hi I have the following shinglefilter (Lucene 3.2) public TokenStream tokenStream(String fieldName, Reader reader) { StandardTokenizer first = new StandardTokenizer(Version.LUCENE_32, reader); StandardFilter second = new StandardFilter(Version.LUCEN

Re: lucene 4.0 and DocumentsWriterPerThreadPool compared to lucene 3.4

2011-10-11 Thread Marc Sturlese
Simon, In this example I've set the DEFAULT_MAX_THREAD_STATES of DocumentsWriterPerThreadPool to 1. I've debugged the code and I've made sure that ThreadAffinityDocumentsWriterThreadPool has the value set to 1 (as I was trying to make it behave similar to lucene 3.4 using a single thread). I'm ind

Re: lucene 4.0 and DocumentsWriterPerThreadPool compared to lucene 3.4

2011-10-11 Thread Simon Willnauer
marc, can you provide more info about your IndexWriterConfig you are using? maybe just call IndexWriterConfig#toString() and past it in? simon On Tue, Oct 11, 2011 at 2:14 PM, Marc Sturlese wrote: > I'm doing some performance test doing bulk indexing with lucene 4.0 and I'm > seeing weird resul

Re: Using BlockJoinQuery?

2011-10-11 Thread Michael McCandless
Maybe try looking at the unit test? It has a simplistic example of a Resume which contains one or more "jobs". If you can share any details about how you're using it / how it works out / etc., that'd be great :) It's a very new feature so we need feedback... Mike McCandless http://blog.mikemcc

Re: lucene 4.0 and DocumentsWriterPerThreadPool compared to lucene 3.4

2011-10-11 Thread Mihai Caraman
Hey, you should compare with the ThreadedIndexWriter too :). I'll attach the source from Lucene in action SE manual and you can just replace the new IntexWriter(... with new ThreadedIndexWriter(... See if those results make a difference. Also I presume you don't have a single core cpu 2011/10/11

lucene 4.0 and DocumentsWriterPerThreadPool compared to lucene 3.4

2011-10-11 Thread Marc Sturlese
I'm doing some performance test doing bulk indexing with lucene 4.0 and I'm seeing weird results. I've read http://www.gossamer-threads.com/lists/lucene/java-dev/127190?do=post_view_threaded#127190 but I'm still having doubts. I'm building an index of 1G containing 1 milion docs. When building the

Using BlockJoinQuery?

2011-10-11 Thread sol myr
Hi, I noticed that the new Lucene 3.4 supports "BlockJoinQuery" (allowing for 'join' or 'relation' between documents). I understand the documented limitations on the feature (nowhere near the power of SQL join), but it's still very useful for me :) My question: does anyone please have a code ex

Re: Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-11 Thread Ian Lea
See the FAQ entry http://wiki.apache.org/lucene-java/LuceneFAQ#What_wildcard_search_support_is_available_from_Lucene.3F There is also org.apache.lucene.search.regex.RegexQuery in lucene contrib. Be aware that wildcard queries can be slow, particularly if you enable leading wild cards. I don't u

Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-11 Thread Mead Lai
Hello all, *Background: *There are *ONE MILLION* data in a table, and this table has 100 columns inside. The application need to search the data in EVERY column with one 'keyword'. so, I try it in a clumsy way, using a database view, then search the view. Just like the following SQL: *=Step1*: crea