Re: Searching repeating fields

2008-11-19 Thread Eran Sevi
//www.cnn.com/ > >> page_description: cnn breaking news > >> page_title_ajax: news > >> page_title_paris: cnn news > >> page_title_daniel: homepage > >> username: ajax > >> username: paris > >> username: danie

Re: Searching repeating fields

2008-11-18 Thread Chris Hostetter
There has been discussion in the past about how PhraseQuery artificially requires that the Terms you add to it must be in the same field ... you could theoretically modify PhraseQuery to have a tpe of query that required terms in one field be withing (slop)N positions of a term in a "parallel"

Re: Searching repeating fields

2008-11-18 Thread Mark Ferguson
gt; page_title_ajax:news. Might not even need to store user. >> >> >> -- >> Ian. >> >> >> On Tue, Nov 18, 2008 at 5:48 PM, Mark Ferguson >> <[EMAIL PROTECTED]> wrote: >> > Hello, >> > >> > I am designing an index in w

Re: Searching repeating fields

2008-11-18 Thread Mark Ferguson
gt; > > I am designing an index in which one url corresponds to one document. > Each > > document also contains multiple parallel repeating fields. For example: > > > > Document 1: > > url: http://www.cnn.com/ > > page_description: cnn breaking news > >

Re: Searching repeating fields

2008-11-18 Thread Ian Lea
page_title_ajax:news. Might not even need to store user. -- Ian. On Tue, Nov 18, 2008 at 5:48 PM, Mark Ferguson <[EMAIL PROTECTED]> wrote: > Hello, > > I am designing an index in which one url corresponds to one document. Each > document also contains multiple parallel rep

Searching repeating fields

2008-11-18 Thread Mark Ferguson
Hello, I am designing an index in which one url corresponds to one document. Each document also contains multiple parallel repeating fields. For example: Document 1: url: http://www.cnn.com/ page_description: cnn breaking news page_title: news page_title: cnn news page_titel: homepage

Re: Searching repeating fields

2006-06-23 Thread Paul Elschot
On Thursday 22 June 2006 21:18, Subodh Damle wrote: > Hi all. > > We've been using Lucene to index our dynamic data structure and so far > Lucene has been flexible enough to accommodate our requirements. > > Now we have this requirement about searching repeating fields,

Re: Searching repeating fields

2006-06-22 Thread Chris Hostetter
: Here, the 'revenue-info' is a repeating node, so we can have records like : : Record 1 : ---financial-data : --revenue-info : year = 2000 : amount = 100 : --revenue-info : year = 2001 : amount = 200 : : Record 2 : ---financial-data : --revenue-

Searching repeating fields

2006-06-22 Thread Subodh Damle
Hi all. We've been using Lucene to index our dynamic data structure and so far Lucene has been flexible enough to accommodate our requirements. Now we have this requirement about searching repeating fields, whose implementation is not clear. Our data records have a dynamic tree

Re: repeating fields

2005-12-07 Thread Erik Hatcher
On Dec 7, 2005, at 8:48 AM, Reza Ghaffaripour wrote: I think having different documents will not be a good idea. for me each xml is an ebook. and "p" means paragraph. i have hundereds of paragraphs in every ebook. and i think i should keep each ebook in a single document. am i right ? How

Re: repeating fields

2005-12-07 Thread Malcolm
That's what I have, loads of different tags and (abstract) tags etc in each xml document so a lucene document for each is okay. malcolm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: repeating fields

2005-12-07 Thread Reza Ghaffaripour
I think having different documents will not be a good idea. for me each xml is an ebook. and "p" means paragraph. i have hundereds of paragraphs in every ebook. and i think i should keep each ebook in a single document. am i right ? On 12/7/05, Malcolm <[EMAIL PROTECTED]> wrote: > > > Firstly you

Re: repeating fields

2005-12-07 Thread Malcolm
Firstly you should obtain LUKE and check everything is layed out correctly in your index. Secondly maybe a Wildcard/prefix query or termquery.for example(termquery): TermQuery heTerm = new TermQuery( new Term("p", "x")); TermQuery sheTerm = new TermQuery( ne

Re: repeating fields

2005-12-07 Thread Erik Hatcher
On Dec 7, 2005, at 3:49 AM, Reza Ghaffaripour wrote: hi all, im new to lucene. i have an xml with repeating tags.something like : x xx xxx I add the "p" field as follows: myDocument.add(Field.Text("p", "x")); myDocument.add(Field.Text("p", "xx")); but when i search for "x" it returns t

repeating fields

2005-12-07 Thread Reza Ghaffaripour
hi all, im new to lucene. i have an xml with repeating tags.something like : x xx xxx I add the "p" field as follows: myDocument.add(Field.Text("p", "x")); myDocument.add(Field.Text("p", "xx")); but when i search for "x" it returns the first hit only. what should i do ? i want to search fo