Results 1 to 10 of 10
Thread: get hit scoring?
- 04-04-2010, 11:23 AM #1
Member
- Join Date
- Nov 2009
- Posts
- 6
- Rep Power
- 0
- 04-04-2010, 01:03 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Are you talking this related to Java or Apache?
- 04-04-2010, 01:29 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 6
- Rep Power
- 0
I don't understand your question. I understand Lucene to be an API using Java that is provided by Apache.
Allasso
- 04-04-2010, 01:42 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Sorry about that. I'm not clear with my question. I just want to know that same concept use in php as well. Never mind.
Did you read the API? They have a recommendation for that deprecated method.
Hits (Lucene 2.2.0 API)
- 04-04-2010, 02:07 PM #5
Member
- Join Date
- Nov 2009
- Posts
- 6
- Rep Power
- 0
reading the 2.9.1 docs, the entire Hits class is deprecated.
- 04-05-2010, 03:03 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I've that 2.2 version and still using it. Didn't they have any suggestion for that in 2.9?
- 04-07-2010, 06:19 PM #7
Member
- Join Date
- Nov 2009
- Posts
- 6
- Rep Power
- 0
I never found any recommendations, but I finally stumbled on a way to get it:
ScoreDoc.score
the way I got it in my app:
Thank you much, ErangaJava Code:TopScoreDocCollector collector = TopScoreDocCollector.create(hitsPerPage, true); ScoreDoc[] hits = collector.topDocs().scoreDocs; hits[i].score
Allasso
- 04-08-2010, 03:51 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
From where you find about this. If you have any related stuff can you send it to me here. If I update my stuff then I have to deal with those as well in near future.
- 06-03-2010, 04:18 PM #9
Member
- Join Date
- Nov 2009
- Posts
- 6
- Rep Power
- 0
Soooooooooo sorry, Eranga,
After my last post I never came back to the forum, so I didn't see your request. If I remember I didn't find it on a forum or anything, I just started working with TopScoreDocCollector class, trying the methods, looking at the classes of the objects they return, etc, until I finally got it to work.
The irony is, I ended up not using it after all.
Allasso
- 06-04-2010, 04:00 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
That's better. So you can mark the thread solved, if you are satisfied with your solution.
Similar Threads
-
Feature extraction from a text file in java. this is used for scoring the sentences
By joe_2110 in forum Advanced JavaReplies: 1Last Post: 02-04-2008, 08:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks