Hi Erick,
 My idea/need is to create a simple web interface where I can manage my
index.
managing includes..
Adding new documents to index, editing the old ones, deleting, etc.. all
using a simple Web GUI so that person does not need to be a web developer to
manage the index. Besides there are other few things which I have to add to
my application, specific to my project. This all will be part of an Admin
Panel.

The discussions show that its currently not possible to get docNum by some
simple ways, infact I would have to use Hits to get my job done. Besides the
docID issue, i.e. if it changes the thing might not work as I expected..
Perhaps simple solution is just an old database style to have a unique ID
field (like a primary key) with some Auto-Incerement approach.. this way we
can query for that ID to get docID and will never go wrong. But
incorporating this new ID field.. I have to see how feasible it could be...


BTW.. where can I find the GWT version? I coudlnt' locate the reference on
Sandbox or via G!

Varun.
On Fri, Mar 14, 2008 at 10:58 AM, Erick Erickson <[EMAIL PROTECTED]>
wrote:

> Doc IDs are assigned at index time and can change over time That is,
> deleting
> a document and optimizing (and other operations) can and will change
> document IDs. So, yes, you have to do a search (either use a hits object
> or one of the HitCollectors) in order to delete by doc ID.
>
> You can also delete by terms, see the API.
>
> There are other options, but you haven't explianed what you're
> trying to accomplish enough to offer any more suggestions.
>
> Best
> Erick
>
> On Wed, Mar 12, 2008 at 5:44 PM, varun sood <[EMAIL PROTECTED]> wrote:
>
> > No. I haven't but I will. even though I would like to make my own
> > implementation. So any idea of how to get the "doc num"?
> >
> > Thanks for replying.
> > Varun
> >
> > On Wed, Mar 12, 2008 at 5:15 PM, Mark Miller <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Have you seen the work that Mark Harwood has done making a GWT version
> > > of Luke? I think its in the latest release.
> > >
> > > varun sood wrote:
> > > > Hi,
> > > >   I am trying to delete a document without using the hits object.
> > > > What is the unique field in the index that I can use to delete the
> > > document?
> > > >
> > > > I am trying to make a web interface where index can be modified,
> > smaller
> > > > subset of what Luke does but using JSPs and Servlet.
> > > >
> > > > to use deleteDocument(int docNum)
> > > > I need docNum how can I get this? or does it have to come only vis
> > Hits?
> > > >
> > > > Thanks,
> > > > Varun
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>

Reply via email to