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

插入10w拥有共同词前缀的Document,根据该词前缀只能匹配到5001个docId? #9

Open
kench1994 opened this issue May 28, 2024 · 1 comment

Comments

@kench1994
Copy link

我的测试代码结构如下

@kench1994
Copy link
Author

// 插入伪代码
for (i in (0 -> 10w))
{
	{
		new document_updater
		new document = document_updater->New()
		document.SetID(i);
		
		
		auto field = document.AddField();
		field->SetMeta(0, flag);
		field->SetString("拥有共同词前缀的长文本");
		
		
		// 1w或1k作为一批次提交
		bool success = indexer.index_writer_->AddDocuments(table, documents);
	}	
}

// 匹配伪代码
BooleanQuery
DoQuery(table, query, 0, 10w, nullptr, nullptr, match_docids)
std::cout << "query: match " << match_docids.size() << std::endl;


//输出:
query: match 50001

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

No branches or pull requests

1 participant