Re: searching a date range

2007-03-03 Thread Mohammad Norouzi
Hi again I even removed "/" from my query but still not working good. Do I have to index dates issues without "/"? now in the index I have 1978/05/05 should I change it to 19780505? On 3/4/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote: Hi I want to search through lucene's index from a start d

searching a date range

2007-03-03 Thread Mohammad Norouzi
Hi I want to search through lucene's index from a start date to end date. when I pass this query it works, say, admitDate:1978/05/05 however, when I use a range syntax it return no records: admitDate:[1978/05/05 TO 2005/05/05] I even tried this: admitDate:["1978/05/05" TO "2005/05/05"] but still

RE: Can Highlighter handle multiple word terms?

2007-03-03 Thread Andreas Guther
Mark, Thank you for your answer. Andreas -Original Message- From: Mark Miller [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 10:07 AM To: java-user@lucene.apache.org Subject: Re: Can Highlighter handle multiple word terms? What fragment size are you using? Have you tried the

Re: [ANN] Printing lucene index content

2007-03-03 Thread starz10de
karl wettin-3 wrote: > > > 3 mar 2007 kl. 23.18 skrev starz10de: > > > IndexReader ir = IndexReader.open("index"); > > TermEnum terms=ir.terms(); > > TermEnum termEnum = ir.getReader().terms(); > while (termEnum.next()) { > TermDocs

Re: [ANN] Printing lucene index content

2007-03-03 Thread karl wettin
3 mar 2007 kl. 23.18 skrev starz10de: IndexReader ir = IndexReader.open("index"); TermEnum terms=ir.terms(); TermEnum termEnum = ir.getReader().terms(); while (termEnum.next()) { TermDocs dok = ir.getReader().termDocs(); dok.seek(termEnum); while

Re: [ANN] Printing lucene index content

2007-03-03 Thread starz10de
karl wettin-3 wrote: > > > 3 mar 2007 kl. 22.31 skrev starz10de: > >>> >>> hi Karl , >>> >>> but the problem is that the getReader is not defined for type >>> indexReader >>> !! >>> >>> this is my code >>> >>> IndexReader ir = IndexReader.open("index"); >>> >>> TermEnum terms=ir.terms

IndexReader.FieldOptions

2007-03-03 Thread Tricia Williams
Hi, I'm wondering why Stored isn't one of the IndexReader.FieldOption(s)? Stored is created at the same time and place as the other options (FieldOption.INDEXED and FieldOption.TERMVECTOR) so it doesn't make sense that it isn't retrieved in the same way. Tricia ---

Re: [ANN] Printing lucene index content

2007-03-03 Thread karl wettin
3 mar 2007 kl. 22.31 skrev starz10de: hi Karl , but the problem is that the getReader is not defined for type indexReader !! this is my code IndexReader ir = IndexReader.open("index"); TermEnum terms=ir.terms(); TermEnum termEnum = ir.getReader().terms(); while (term

Re: [ANN] Printing lucene index content

2007-03-03 Thread starz10de
karl wettin-3 wrote: > > > 3 mar 2007 kl. 21.25 skrev starz10de: >>> how i can implement aprioriIndex ? > > Oh sorry. That should just be your IndexReader. > > -- > karl > > hi Karl , > > but the problem is that the getReader is not defined for type indexReader > !! > > this is my code >

Re: [ANN] Printing lucene index content

2007-03-03 Thread karl wettin
3 mar 2007 kl. 21.25 skrev starz10de: how i can implement aprioriIndex ? Oh sorry. That should just be your IndexReader. -- karl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [ANN] Printing lucene index content

2007-03-03 Thread starz10de
karl wettin-3 wrote: > > > 3 mar 2007 kl. 17.06 skrev starz10de: > >> >> I did try this but it is still not working >> >> IndexReader ir = IndexReader.open("index"); >> >> TermDocs dok=ir.termDocs(); >> while (dok.next()) { >>System.out.println("doc nr: "+dok.doc()+ " term freq

Re: [ANN] Printing lucene index content

2007-03-03 Thread karl wettin
3 mar 2007 kl. 17.06 skrev starz10de: I did try this but it is still not working IndexReader ir = IndexReader.open("index"); TermDocs dok=ir.termDocs(); while (dok.next()) { System.out.println("doc nr: "+dok.doc()+ " term freq :"+dok.freq()); } TermEnum termEnum = ap

Re: [ANN] Printing lucene index content

2007-03-03 Thread starz10de
karl wettin-3 wrote: > > > 3 mar 2007 kl. 13.54 skrev starz10de: > >> How i can print the index content in order to use them for some >> application. >> I did use >> TermEnum terms=ir.terms(); >> while (terms.next()) { >>System.out.println(terms.term().text()); >> } >>

Re: retrieve term positions in query

2007-03-03 Thread Erick Erickson
There is a long thread in the archive where Mark and I talked about a SpansExtractor class that might do what you want. See the thread titled "*Multiword Highlighting"* Erick On 3/1/07, matpil <[EMAIL PROTECTED]> wrote: Hi! My problem is to retrieve the term positions in a "general" query w

Re: Printing lucene index content

2007-03-03 Thread karl wettin
3 mar 2007 kl. 13.54 skrev starz10de: How i can print the index content in order to use them for some application. I did use TermEnum terms=ir.terms(); while (terms.next()) { System.out.println(terms.term().text()); } I still need to print the document id and the term

Printing lucene index content

2007-03-03 Thread starz10de
hi all, How i can print the index content in order to use them for some application. I did use TermEnum terms=ir.terms(); while (terms.next()) { System.out.println(terms.term().text()); } I still need to print the document id and the term frequency inside each document.

Re: Indexing single words and marked phrases

2007-03-03 Thread Andrzej Bialecki
Mike O'Leary wrote: I am working on a project with team that is developing a named entity recognizer. I need to configure Lucene indexing so that it indexes the individual words in the text that the named entity recognizer outputs as well as the phrases that it marks. For example, in a string lik