Re: Nested Queries

2006-12-28 Thread Steven Rowe
Hi Kapil, Kapil Chhabra wrote: > Hi Steve, > Thanks for the response. > Actually I am not looking for a query language. My question is, whether > Lucene supports Nested Queries or self joins? > As per > http://lucene.apache.org/java/docs/api/org/apache/lucene/queryParser/QueryP

Re: Nested Queries

2006-12-28 Thread Erick Erickson
g for any magic internal to Lucene to solve this problem. On 12/28/06, Kapil Chhabra <[EMAIL PROTECTED]> wrote: Hi Steve, Thanks for the response. Actually I am not looking for a query language. My question is, whether Lucene supports Nested Queries or self joins? As per http://lucene.apache.

Re: Nested Queries

2006-12-27 Thread Kapil Chhabra
Hi Steve, Thanks for the response. Actually I am not looking for a query language. My question is, whether Lucene supports Nested Queries or self joins? As per http://lucene.apache.org/java/docs/api/org/apache/lucene/queryParser/QueryParser.html In BNF, the query grammar is: Query

Re: Nested Queries

2006-12-27 Thread Steven Rowe
Hi Kapil, Kapil Chhabra wrote: > Just to mention, I have tokenized FIELD2 on "," and indexed it. > > FIELD2:3 should return 1,2 > FIELD2:(FIELD2:3) should return something like the output of: > > *FIELD2: 1 OR FIELD2: 2 Given your data table, I assume you mean: FIELD1:3 should return 1,2

Re: Nested Queries

2006-12-27 Thread Grant Ingersoll
Hi Kapil, I am not sure exactly what you asking, could you give an example of the correct response? Also, are you truly using numbers or are they just substitutes for text? And are they part of a bigger problem requiring Lucene? If it is just numbers, maybe a DB might be the better way

Re: Nested Queries

2006-12-26 Thread Kapil Chhabra
Hi All, Any pointers in this direction? Thanks in advance. Kapil Kapil Chhabra wrote: Just to mention, I have tokenized FIELD2 on "," and indexed it. FIELD2:3 should return 1,2 FIELD2:(FIELD2:3) should return something like the output of: *FIELD2: 1 OR FIELD2: 2 * Regards, kapilChhabra* *

Re: Nested Queries

2006-12-26 Thread Kapil Chhabra
Just to mention, I have tokenized FIELD2 on "," and indexed it. FIELD2:3 should return 1,2 FIELD2:(FIELD2:3) should return something like the output of: *FIELD2: 1 OR FIELD2: 2 * Regards, kapilChhabra* * Kapil Chhabra wrote: Hi, Please see the following data-structure ++--+ |

Nested Queries

2006-12-26 Thread Kapil Chhabra
Hi, Please see the following data-structure ++--+ | FIELD1 | FIELD2 | ++--+ | 1 | 2,3,4,6, | | 2 | 3,1,5,7, | | 3 | 1,2, | | 4 | 1,8,10, | | 5 | 2,9, | | 6 | 1, | | 7 | 2,9, | | 8 | 4,9, | | 9 |

RV: nested queries

2005-04-08 Thread Romero Mariela
Hi all, We are using Lucene to search business objects with simple queries, but now we need advanced searchs. For example, we have a user object which has as indexed fields the type of the object, its id and its role, and an account object which has as indexed fields the type, its id and the id

nested queries

2005-04-07 Thread Romero Mariela
Hi all, We are using Lucene to search business objects with simple queries, but now we need advanced searchs. For example, we have a user object which has as indexed fields the id and its function, and an account object which has as indexed fields its id and the id of the owner user.