Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Need help with reading the lucene hits speed

Reply
Thread Tools

Need help with reading the lucene hits speed

 
 
rboeckmann@groceryshopping.net
Guest
Posts: n/a
 
      03-05-2008
I am new to this group and fairly new to Lucene. I like the speed it
offers when searching but what is the secret to getting the hits
returned.

Here is what I am doing...

// execute the search
Hits _oWidgetHits =
_oLuceneIndexSearch.ExecuteSearch(_booleanqqueryWi dgetsQuery,
INDEXPATH);

// read hit results
if (_oWidgetHits.Length() > 0)
{
for (int iResultsCount = 0; iResultsCount < _oWidgetHits.Length();
iResultsCount++)
{
// get the document from index
Document _dResultsDoc = _oWidgetHits.Doc(iResultsCount);

// create a new row with the result data
DataRow _rWidgets = _dtSearchResults.NewRow();
_rWidgets["WidgetID"] = _dResultsDoc.Get("WidgetID");
_rWidgets["WidgetTitle"] = _dResultsDoc.Get("WidgetTitle");

// add row
_dtSearchResults.Rows.Add(_rRecipe);
}
}

return _dtSearchResults;

I have tried using the hitIterator but that give me no gains. I am
researching the hitCollector but that seems to be the same concept.

The issue is the hits object really doesn't help. What I need is an
xml object. So I convert the hits to a dataset and that to xml. To
complicate things, the term searched in my boolean query is returning
32,000 records. Do I need them all? Probably not but I have to return
them in my webservice.

PLEASE HELP!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple help about lucene dreamtackler@gmail.com Java 2 04-29-2008 03:05 PM
How can I speed up reading the Lucene search results rhino1130 Java 0 03-12-2008 03:59 PM
HELP with Lucene.net Mirnes ASP .Net 0 05-23-2007 04:37 PM
Number of hits divided by "robot hits" Dos-Man HTML 5 03-04-2004 07:56 AM
speed speed speed a.metselaar Computer Support 14 12-30-2003 03:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57