Hi Laszlo,
On 14.05.23 02:14, Laszlo Kishalmi wrote:
Dear all,
Does anyone have a good knowledge on our Indexing API?
I would like to add some search functionality to my HCL/Terraform
support.
I do not know too much of Lucene, but what I know is not really match
with what I see there. Then I checked and we are using Lucene 3.6.2,
that is more than 10 years old by now.
I've also checked what would it mean to upgrade that to a recent
version. It seems to be a hard job to take, moving even to Lucene 4.x
would be hard, at least with my level of knowledge. (Lucene changed
completely between 3.x to 4.x)
I've seen that the new Maven Indexer comes with Lucene 9.x. So we have
recent Library support.
My first question, shall we start to do something about the old Lucene?
yes we have to. I started a while ago in a local branch but got stuck in
some areas which were not covered by old migration guides. 3->4 had some
breaking changes. The problem was also that a lot of code is using the
API - as you probably saw.
Then I decided to do the easier part first, which was the maven-indexer
module. This is mostly complete and master uses the latest lucene 9.6
branch (although there are some pending refactoring left to get rid of
more deprecated code and also some maven-indexer specific features I am
working on).
I am no lucene expert either - I mostly learn on the go. I did migrate
apache roller from an old version (can't remember) to 9.x a while ago,
so it certainly is doable, NB has just much more code.
Shall I invest using our current indexing API?
What I'm leaning for at the moment is, to move the Lucene 9.x library
out of Maven Indexer as a separate library project then I'd implement
my things using Lucene 9 directly.
Using lucene directly would make it difficult to switch to the netbeans
API again some time in future, no? We could check if it is possible to
fork the NB API+impl and make it compatible with Lucene 9 and deploy
both versions at the same time?
This would allow to move one language at a time to the new API.
But this is likely a larger project I an willing to start right now, I
still hope there is a way to migrate the whole thing, but in smaller
steps: 3->4->5...->9.
-mbien
What do you think on that?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists