-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abstaction of LuceneIndex.cs #351
Comments
I need to understand why this is being done in the first place? |
I want to create Block Index (BlockJoin) therefore I must use UpdateDocuments Method and I have to change |
Really sorry for the long delay here. I can't fields or properties mutable read/write since that is dangerous and can easily result in folks making mistakes that are hard to debug. An easy solution is to add a virtual method: protected virtual long? UpdateLuceneDocument(Term term, Document doc) Then you can override this, update the document as you wish and return your custom lastestGen value. I'll get this done and ship a new version shortly. |
Will be shipped with 3.2.1 today. |
Problem: overriding
AddDocument
MethodThis code is used to access and set the private field
_latestGen
in a derived class.Resolve Solution
Option 1: Making the Private Field Protected Abstract or Virtual
Should
_latestGen
be made a protected abstract field?should be at least:
Option 2: Making the Method Virtual
Should the
WaitForChanges
method be made virtual?should be at least:
The text was updated successfully, but these errors were encountered: