: I feel using Lucene's highlighter may make it easier to read the search
: results.
I'm of the opinion that since the result pages are all source code, syntax
highlighting is definitely the way to go, but given the existing
presentation, it does seem like it would make sense to "highlight" the
l
Hi
Luceners
Apologies.
As I have already replied,Using Analysis I have tried on all Analyzers
(including Standard Analyzer)
But not able to achive the required COMPLETS WORD Split.
My I/p String would be a lengthy one as below
String sKey = "\"" + "Dough Cutting" + "\"" + " " + "Otis Go
Yup, the C/C++ code is parsed using some templates I wrote utilizing
CodeWorker.
It would be possible to do the same thing to any other language such as
Java or PHP or Perl.
Although you'd need an expert understanding of that language's syntax in
order to successfully parse it correctly :)
Ini
This is cool!
Seems you parsed the C/C++ code. Is this easy to extend to other
languages, like Java?
And you choose to display the data stored in database, any reason for
that compared to reading it from Lucene index itself?
I feel using Lucene's highlighter may make it easier to read the search
Not sure if this is appropriate or not, but I just put live a web site
that I have been working on for over a year, and it uses Lucene for all
it's searching.
I have 46 million documents in 15 Lucene index's, although the vast
majority of those consist of only a few words.
The Lucene index's
On Aug 7, 2005, at 12:17 PM, Riccardo Daviddi wrote:
Where can I get the binary of all the classes for highlighting?
There have never been any official releases of the Sandbox/contrib
pieces (though that will change with Lucene 1.9/2.0 and beyond). A
Lucene 1.4.3 compatible binary exists
Ah, ok.
So what I am doing is correct, just the way to see the boost factor
was uncorrect.
sorry if I do newbie questions...
On 8/7/05, Chris Hostetter <[EMAIL PROTECTED]> wrote:
> : Field f = Field.Text("boostfield", "text");
> : f.setBoost(3.0f);
> : document.add(f);
>
> : if then i try to ge
: Field f = Field.Text("boostfield", "text");
: f.setBoost(3.0f);
: document.add(f);
: if then i try to get the boost factor of the boostfield
:
:
System.out.println(IndexReader.open(indexDir).document(0).getField("boostfield").getBoost());
:
: for the only one document indexed I get 1.0 instead
A Lucene Highlighter Jar is included in the Lucene in Action code.
The link to downloadable code is at http://lucenebook.com/
Otis
--- Riccardo Daviddi <[EMAIL PROTECTED]> wrote:
> I don't know where I am wrong...
>
> I just do this:
>
> IndexWriter writer = new IndexWriter(indexDir, new
> Sta
I don't know where I am wrong...
I just do this:
IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(),
!IndexReader.indexExists(indexDir));
writer.setUseCompoundFile(true);
Document document = new Document();
document.add(Field.Keyword("
Where can I get the binary of all the classes for highlighting?
thx
--
Riccardo Daviddi
University of Siena - Information Engeneering
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
You've asked to different questions - you can use IndexReader.numDocs
() to find the total number of documents.
Within a date range - how did you index the dates? If the dates are
in lexicographical order, you can walk all the terms in that range
using TermEnum from IndexReader.terms(Term t
Hi
Is it possible to count the total number of documents in the index
without requesting a search? I would like to count the total documents
in the index within a date range.
Thanks,
Ben
-
To unsubscribe, e-mail: [EMAIL PROTECTE
13 matches
Mail list logo