Re: Distinct search

2006-10-11 Thread Eugeny N Dzhurinsky
On Wed, Oct 11, 2006 at 12:09:40PM -0400, Erick Erickson wrote: > No problem. Partly, it's helping me clarify my current problem > > Yes, you must delete and re-add a document to change it. You might want to > look at the IndexModifier class. Be aware of some things: > 1> Lucene doc IDs may c

Re: Distinct search

2006-10-11 Thread Erick Erickson
No problem. Partly, it's helping me clarify my current problem Yes, you must delete and re-add a document to change it. You might want to look at the IndexModifier class. Be aware of some things: 1> Lucene doc IDs may change when the index is changed, I think after optimization. So, in order

Re: Distinct search

2006-10-11 Thread Eugeny N Dzhurinsky
On Wed, Oct 11, 2006 at 11:30:03AM -0400, Erick Erickson wrote: > There's no real group_by functionality in Lucene. I'd have to ask, though, > "why organize your index this way"? I'm guessing that you're approaching > this from a database perspective, and if that's so, you may want to re-think > so

Re: Distinct search

2006-10-11 Thread Erick Erickson
There's no real group_by functionality in Lucene. I'd have to ask, though, "why organize your index this way"? I'm guessing that you're approaching this from a database perspective, and if that's so, you may want to re-think some things. Although see below for my contradicting myself. Lucene

Distinct search

2006-10-11 Thread Eugeny N Dzhurinsky
Hi there! I have a index structure like this: document_id some_text . when searching for some set of documents, there could be a case when several comments for the same document match the search criteria. In such case I need to get single hit for all such cases, in other word - perform a "gr

Re: Items in multiple category: distinct search?

2005-11-15 Thread John Powers
I got the category thing to work. I'm using a string "category" that looks like: Cat1[980455981]{4}|SubCatA[980456122]{1}| Then I can search by id, name and when I get a result list I can put them in sequence (the soft bracket number) However, my problem now is distinct... I want to put items

Re: Items in multiple category: distinct search?

2005-11-15 Thread Jeff Rodenburg
Hi John - It sounds like you're thinking of your index in terms of sql constructs -- multiple rows for the same record. We do this very same thing with categories; if you have a record that lives in multiple categories, just add additional category field/value pairs for your original record. It's

Items in multiple category: distinct search?

2005-11-15 Thread John Powers
Hello,  I have done a search for this issue, but I didnt really see an answer. if i want to store things in a hierarchy, but i want items to be in multiple categories at any level.   i'd like to be able to search for an item and only show it once, but maybe (not required) show what categories the