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

Implementation of Facets (#310) #311

Merged
merged 46 commits into from
Apr 13, 2023
Merged

Conversation

nikcio
Copy link
Contributor

@nikcio nikcio commented Nov 14, 2022

closes #310

Currently trying to implement the proposal with the 2nd approach

  • Working Implementation
  • Tests
  • Documentation
    I would recommend using a markdown previewer to review the docs 😄 (I updated the table of Value types with the new facet types and it's quite hard to see the change directly in markdown without preview)
  • XML Documentation (See Facets XML (#311) #312)
    To avoid having to many changes in one PR this has been moved to a separate PR
  • Nullable (See Facets nullable (#311 & #307) #313
    This change affects the whole project and has been moved to a separate PR

@nikcio nikcio mentioned this pull request Nov 15, 2022
5 tasks
This was referenced Nov 17, 2022
@nikcio nikcio marked this pull request as ready for review November 18, 2022 14:35
Copy link
Owner

@Shazwazza Shazwazza left a comment

Choose a reason for hiding this comment

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

Thanks for all the effort! Have left some comments but namely I think we need to move facets to a different interface. Let me know what you think.

src/Examine.Core/Search/IFacetResults.cs Outdated Show resolved Hide resolved
src/Examine.Lucene/Search/LuceneSearchExecutor.cs Outdated Show resolved Hide resolved
src/Examine.Lucene/Search/LuceneSearchQuery.cs Outdated Show resolved Hide resolved
src/Examine.Lucene/Search/LuceneSearchResults.cs Outdated Show resolved Hide resolved
src/Examine.Lucene/Search/LuceneSearchResults.cs Outdated Show resolved Hide resolved
src/Examine.Lucene/Search/LuceneSearchQueryBase.cs Outdated Show resolved Hide resolved
src/Examine.Core/Search/IQuery.cs Outdated Show resolved Hide resolved
@nikcio
Copy link
Contributor Author

nikcio commented Dec 14, 2022

The comments should be resolved now @Shazwazza 😄

docs/searching.md Outdated Show resolved Hide resolved
@nikcio
Copy link
Contributor Author

nikcio commented Dec 15, 2022

I just noticed that I by mistake had added the Lucene.Net.Facet Nuget package to the core project. I've now removed it and created a copy of the Int64Range and DoubleRange models with an extension in the Examine.Lucene project to easily convert to the lucene equivalent model.

@nikcio nikcio requested a review from Shazwazza December 16, 2022 07:34
@Shazwazza
Copy link
Owner

Hey @callumbwhyte any chance you have time to feedback on this comment above: #311 (comment)

I've actually merged and tweaked the changes done in the WIP work that @nikcio mentions (nikcio#3) into this branch.

@nzdev
Copy link
Contributor

nzdev commented Feb 17, 2023

Perhaps I'm early to respond, if so apologies as I'm trying to keep the other Facet PR's in sync. Currently the tests show that there is no implementation of IFaceting.

@Shazwazza
Copy link
Owner

@nzdev just me being too hasty :P I'll update!

@nikcio
Copy link
Contributor Author

nikcio commented Mar 16, 2023

@Shazwazza is there anything you need help with to move forward with this PR?😅

@Shazwazza
Copy link
Owner

@nikcio was hoping @callumbwhyte could provide some feedback on the comment above #311 (comment)

@nzdev
Copy link
Contributor

nzdev commented Mar 20, 2023

Fix for the missing interface issue I mentioned nikcio#4

@nzdev
Copy link
Contributor

nzdev commented Mar 20, 2023

RE: #311 @Shazwazza IFacetField will need some changes to support taxonomy facets.

@nzdev
Copy link
Contributor

nzdev commented Mar 20, 2023

This pr makes the facet extraction flexible enough for taxonomy facets / other faceting types to be implemented. nikcio#5

@nikcio
Copy link
Contributor Author

nikcio commented Apr 12, 2023

@nzdev I've merged your changes I didn't notice the PR's was made in my fork sorry 😅

@nikcio
Copy link
Contributor Author

nikcio commented Apr 12, 2023

Please let me know if I need to take action on anything else. Still crossing my fingers that this will be merged in the near future 🤞 😄

@Shazwazza Shazwazza changed the base branch from release/3.0 to release/4.0 April 13, 2023 22:29
@Shazwazza Shazwazza merged commit 711a9b3 into Shazwazza:release/4.0 Apr 13, 2023
@Shazwazza
Copy link
Owner

I've merged this into a v4 branch 🎉 I'm not sure if we've addressed what @callumbwhyte had raised previously? Suppose now need to look into @nzdev PR and see what is going on there. There is a lot of changes to account for here for a new abstraction since this will all need to be applied to ExamineX too.

Before any v4 is released, we'll need to do some testing and beta releases. There's also an upcoming new Lucene beta release which contains breaking changes so need to determine if any of those breaks affect the APIs we are using before a release too.

@nzdev
Copy link
Contributor

nzdev commented Apr 13, 2023

This merged pr nikcio#5 introduces IFacetExtractionContext which addresses what @callumbwhyte raised.

Shazwazza added a commit that referenced this pull request Jun 20, 2023
Shazwazza added a commit that referenced this pull request Jul 21, 2023
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.

Examine Facets proposal
5 participants