:92)
at
org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:487)
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:366)
at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:399)
--
___
Chris Fras
e.
thanks as always!
--
_______
Chris Fraschetti
e [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
this? watch my count and switch to a new
index when the time comes, then search across both indexes?
--
___
Chris Fraschetti
e [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL
earch?
--
___
Chris Fraschetti
e [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If i'm using multiple threads to add documents to the index, can it be
assumed that they will be added to the index in the order they are
presented to the indexwriter? and thus keeping my local doc id count
would hold true?
-Chris Fraschetti
On 7/29/05, Erik Hatcher <[EMAIL PROTECTED
I've got an index which I rebuild each time and don't do any deletes
until the end, so doc ids shouldn't change... at index time, is there
a better way to discover the id of the document i just added than
docCount() ?
--
___
Chr
ith using merge on a large
scale?
Thanks in advance
--
_______
Chris Fraschetti
e [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
nt data to help me eliminate duplicates... is there any good
methods that are commonly used for URL stemming?
--
_______
Chris Fraschetti
e [EMAIL PROTECTED]
-
To unsubscribe, e-ma
> Hits hits = searcher.search(query);
> > System.out.println(hits.length() + " total matching documents");
> >
> > final int HITS_PER_PAGE = 10;
> > for (int start = 0; start < hits.length(); start += HITS_PER_PAGE) {
> > int end = Math.min(hits.length(), start + HITS_PER_PAGE);
> > for (int i = start; i < end; i++) {
> > Document doc = hits.doc(i);
> > String path = doc.get("path");
> > if (path != null) {
> > System.out.println(i + ". " + path);
> > } else {
> > String url = doc.get("url");
> > if (url != null) {
> > System.out.println(i + ". " + url);
> > System.out.println(" - " + doc.get("title"));
> > } else {
> > System.out.println(i + ". " + "No path nor URL for this
> > document");
> > }
> > }
> > }
> >
> > if (hits.length() > end) {
> > System.out.print("more (y/n) ? ");
> > line = in.readLine();
> > if (line.length() == 0 || line.charAt(0) == 'n')
> > break;
> > }
> > }
> > }
> > searcher.close();
> >
> > } catch (Exception e) {
> > System.out.println(" caught a " + e.getClass() +
> > "\n with message: " + e.getMessage());
> > }
> > }
> > }
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
___
Chris Fraschetti
e [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]