Skip to content
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

maxDocBytesToAnalyze should be required arg up front [LUCENE-1560] #2634

Open
asfimport opened this issue Mar 13, 2009 · 4 comments
Open

maxDocBytesToAnalyze should be required arg up front [LUCENE-1560] #2634

asfimport opened this issue Mar 13, 2009 · 4 comments

Comments

@asfimport
Copy link

We recently changed IndexWriter to require you to specify up-front
MaxFieldLength, on creation, so that you are aware of this dangerous
"loses stuff" setting. Too many developers had fallen into the trap
of "how come my search can't find this document...".

I think we should do the same with "maxDocBytesToAnalyze" with
highlighter?

Spinoff from this thread:

http://www.nabble.com/Lucene-Highlighting-and-Dynamic-Summaries-p22385887.html

Migrated from LUCENE-1560 by Michael McCandless (@mikemccand), updated May 09 2016

@asfimport
Copy link
Author

Michael McCandless (@mikemccand) (migrated from JIRA)

Moving out.

@asfimport
Copy link
Author

asfimport commented Sep 19, 2012

Steven Rowe (@sarowe) (migrated from JIRA)

I think this issue is still valid?

The nabble.com email thread link in the description is broken - here's the markmail.org thread: http://markmail.org/thread/2pcdjsurrrqoxuew.

maxDocBytesToAnalyze() was deprecated as part of #2209 in favor of maxDocCharsToAnalyze(), and then removed with the 3.0 release deprecation removals as part of #3097.

There is one commented-out vestige that ought to be renamed or removed (my vote is removal - this was commented out six years ago):

265: //	  if(lastEndOffset>maxDocBytesToAnalyze)
266: //   {
267: //     break;
268: //   }

@asfimport
Copy link
Author

Steven Rowe (@sarowe) (migrated from JIRA)

Bulk move 4.4 issues to 4.5 and 5.0

@asfimport
Copy link
Author

Uwe Schindler (@uschindler) (migrated from JIRA)

Move issue to Lucene 4.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant