Skip to content

#228 - Support reading custom properties from SDF files during indexing in Bingo Elastic#3701

Open
Mantas-Kovarskas wants to merge 3 commits into
masterfrom
issue-228
Open

#228 - Support reading custom properties from SDF files during indexing in Bingo Elastic#3701
Mantas-Kovarskas wants to merge 3 commits into
masterfrom
issue-228

Conversation

@Mantas-Kovarskas

@Mantas-Kovarskas Mantas-Kovarskas commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator
  • PR name follows the pattern #1234 – issue name
  • branch name does not contain '#'
  • base branch (master or release/xx) is correct
  • PR is linked with the issue
  • task status changed to "Code review"
  • code follows product standards
  • integration-tests written

@Mantas-Kovarskas Mantas-Kovarskas force-pushed the issue-228 branch 4 times, most recently from a7a882e to 091de55 Compare June 3, 2026 06:28
@Mantas-Kovarskas Mantas-Kovarskas marked this pull request as ready for review June 3, 2026 08:29
@Mantas-Kovarskas Mantas-Kovarskas marked this pull request as draft June 4, 2026 06:25
@Mantas-Kovarskas Mantas-Kovarskas force-pushed the issue-228 branch 2 times, most recently from 5a3b3db to 32b4fc6 Compare June 4, 2026 13:05
async with make_repo() as rep:
result = rep.filter(n="1")
hits = [item async for item in result]
assert hits == []

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test for wrong type for custom properties

allowed = getattr(instance, "_custom_properties", None)
if allowed:
try:
for prop in value_dup.iterateProperties():

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add possibility to set "index=false" for some properties

custom_properties: Optional[Iterable[str]] = kwargs.pop(
"custom_properties", None
)
self._custom_properties = (

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set data structure has better performance than a list - uses hashing instead of checking every element + removes duplicates. And frozen set is used because it is immutable.

@Mantas-Kovarskas Mantas-Kovarskas force-pushed the issue-228 branch 2 times, most recently from 68a9598 to 5c2d76d Compare July 7, 2026 10:19
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

Successfully merging this pull request may close these issues.

Support reading custom properties from SDF files during indexing in Bingo Elastic

2 participants