Re: Index and search terms containing character "-"

2009-06-02 Thread legrand thomas
Hi, A KeywordAnalyzer solved my problem. Luke allowed me to understand the queries and the content of the index. Thanks  (Erick & Balasubramanian Sudaakeran) Tom --- En date de : Dim 31.5.09, Erick Erickson a écrit : De: Erick Erickson Objet: Re: Index and search terms containing character "

Re: Phrase Highlighting

2009-06-02 Thread Max Lynch
> Well what happens is if I use a SpanScorer instead, and allocate it like > > such: > > > >analyzer = StandardAnalyzer([]) > >tokenStream = analyzer.tokenStream("contents", > > lucene.StringReader(text)) > >ctokenStream = lucene.CachingTokenFilter(tokenStream)

Re: Lucene on NFS/iSCSI

2009-06-02 Thread Michael McCandless
I don't have any specific experience with iSCSI, so what follows is speculation... I think iSCSI, which just routes SCSI commands over TCP/IP to some remote storage device, is at a much lower level than NFS. IE, to the computer this remote device acts like a local device, and therefore you can in

RE: Searching documents that contain a field (text of field is irrelevant)

2009-06-02 Thread Digy
Or searcher.search( new PrefixQuery( new Term("desc","") ) ); DIGY -Original Message- From: balasubramanian sudaakeran [mailto:sudaakera...@yahoo.com] Sent: Tuesday, June 02, 2009 7:51 AM To: java-user@lucene.apache.org Subject: Re: Searching documents that contain a field (text of fie

RE: Possible bug in QueryParser when using CJKAnalyzer (lucene 2.4.1)

2009-06-02 Thread Zhang, Lisheng
Thanks very much!!! -Original Message- From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com] Sent: Tuesday, June 02, 2009 9:42 AM To: java-user@lucene.apache.org Subject: Re: Possible bug in QueryParser when using CJKAnalyzer (lucene 2.4.1) Lisheng, A patch file is just a text fil

Re: Possible bug in QueryParser when using CJKAnalyzer (lucene 2.4.1)

2009-06-02 Thread Otis Gospodnetic
Lisheng, A patch file is just a text file, so you will be able to open it with any text editor. But you'll need to apply it from the command line or from an IDE - http://www.google.com/search?hl=en&q=how+to+apply+a+patch Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

RE: Possible bug in QueryParser when using CJKAnalyzer (lucene 2.4.1)

2009-06-02 Thread Zhang, Lisheng
Thanks very much, this could be the same issue, but somehow I could not open the *.patch file, maybe that's sth trivial, is there a *.patch file related tools? I really appreciate a simple pointer. Best regards, Lisheng -Original Message- From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]

Re: Distributed Lucene Questions

2009-06-02 Thread Tarandeep Singh
thanks all for your replies. I am checking Katta... -Tarandeep On Tue, Jun 2, 2009 at 8:05 AM, Stefan Groschupf wrote: > Hi, > you might want to checkout: > http://katta.sourceforge.net/ > > Stefan > > ~~~ > Hadoop training and consulting > http://www.scaleunlimited.

Highlighting in Lucene ( With SrndQuery & Query Parser )

2009-06-02 Thread Radha Sreedharan
Hi all, *Requirment * I have a query of type *SrndQuery *which is parsed by *QueryParser*.On the hit of this query I want to get the region of words around the match. *Approach followed* I used the highlighting logic code as per example usage in << http://lucene.apache.org/java/2_4_1/api/org/apac

Re: How to get top x[30 or 40] docs from result still alongwith the support for hit highlighting?

2009-06-02 Thread KK
Thanks for your response. BTW, I got it done using TopDocs in place of Hits and used this String content = searcher.doc(topDocs.scoreDocs[i].doc).get("content"); instead of String content = hits.doc(i).get("content"); Thanks, KK On Tue, Jun 2, 2009 at 6:52 PM, Erick Erickson wrote: > First,

Re: How to get top x[30 or 40] docs from result still alongwith the support for hit highlighting?

2009-06-02 Thread Erick Erickson
First, I'd ask how sure you are that highlighting is the problem.But answering this should be simple, just remove the highlighting portion. Why can't you just stop iterating the Hits object at your limit? Something like: for (int i = 0; i < hits.length() && i < 50; i++) ? That'll tell you whethe

How to get top x[30 or 40] docs from result still alongwith the support for hit highlighting?

2009-06-02 Thread KK
Hi All, I've been using hit highlighting for some time for non-english search. I'm indexing the fields using this, Document doc = new Document(); doc.add(new Field(contentField, pageContent, Field.Store.YES, Field.Index.TOKENIZED)); doc.add(new Field(idField, pageId, Field.Store.YES, F