Skip to content

Commit 88d94ec

Browse files
committed
Rename from Foundatio.LuceneQueries to Foundatio.Lucene
1 parent c458f80 commit 88d94ec

100 files changed

Lines changed: 222 additions & 724 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"type": "shell",
4444
"command": "dotnet run -c Release",
4545
"options": {
46-
"cwd": "${workspaceFolder}/benchmarks/Foundatio.LuceneQuery.Benchmarks"
46+
"cwd": "${workspaceFolder}/benchmarks/Foundatio.Lucene.Benchmarks"
4747
},
4848
"problemMatcher": [],
4949
"presentation": {

AGENTS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AI Agent Instructions for Foundatio.LuceneQuery
1+
# AI Agent Instructions for Foundatio.Lucene
22

33
## Architecture Overview
44

@@ -13,8 +13,8 @@ Query String → LuceneLexer (tokens) → LuceneParser (AST) → Visitors (trans
1313

1414
### Key Components
1515
- **`LuceneQuery.Parse()`** - Main entry point; returns `LuceneParseResult` with `Document` (AST) and `Errors`
16-
- **`src/Foundatio.LuceneQuery/Ast/`** - AST node types (`TermNode`, `PhraseNode`, `FieldQueryNode`, `RangeNode`, `BooleanQueryNode`, `GroupNode`, etc.)
17-
- **`src/Foundatio.LuceneQuery/Visitors/`** - Visitor pattern for AST transformation
16+
- **`src/Foundatio.Lucene/Ast/`** - AST node types (`TermNode`, `PhraseNode`, `FieldQueryNode`, `RangeNode`, `BooleanQueryNode`, `GroupNode`, etc.)
17+
- **`src/Foundatio.Lucene/Visitors/`** - Visitor pattern for AST transformation
1818
- **`QueryStringBuilder`** - Converts AST back to query string (round-trip capability)
1919

2020
### Visitor Pattern (Critical for Extensions)
@@ -44,13 +44,13 @@ public class MyVisitor : QueryNodeVisitor
4444
```bash
4545
dotnet build # Build all projects
4646
dotnet test # Run all tests
47-
dotnet run -c Release --project benchmarks/Foundatio.LuceneQuery.Benchmarks # Run benchmarks
47+
dotnet run -c Release --project benchmarks/Foundatio.Lucene.Benchmarks # Run benchmarks
4848
```
4949

5050
### Project Structure
51-
- `src/Foundatio.LuceneQuery/` - Core parser library (net8.0, net10.0)
52-
- `src/Foundatio.LuceneQuery.EntityFramework/` - EF Core integration for LINQ expression generation
53-
- `src/Foundatio.LuceneQuery.Elasticsearch/` - Elasticsearch integration for Query DSL generation (uses Elastic.Clients.Elasticsearch 9.x)
51+
- `src/Foundatio.Lucene/` - Core parser library (net8.0, net10.0)
52+
- `src/Foundatio.Lucene.EntityFramework/` - EF Core integration for LINQ expression generation
53+
- `src/Foundatio.Lucene.Elasticsearch/` - Elasticsearch integration for Query DSL generation (uses Elastic.Clients.Elasticsearch 9.x)
5454
- `tests/` - xUnit test projects
5555

5656
## Patterns & Conventions

Foundatio.Lucene.slnx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="Any CPU" />
4+
<Platform Name="x64" />
5+
<Platform Name="x86" />
6+
</Configurations>
7+
<Folder Name="/src/">
8+
<Project Path="src/Foundatio.Lucene/Foundatio.Lucene.csproj" />
9+
<Project Path="src/Foundatio.Lucene.EntityFramework/Foundatio.Lucene.EntityFramework.csproj" />
10+
<Project Path="src/Foundatio.Lucene.Elasticsearch/Foundatio.Lucene.Elasticsearch.csproj" />
11+
</Folder>
12+
<Folder Name="/tests/">
13+
<Project Path="tests/Foundatio.Lucene.Tests/Foundatio.Lucene.Tests.csproj" />
14+
<Project Path="tests/Foundatio.Lucene.EntityFramework.Tests/Foundatio.Lucene.EntityFramework.Tests.csproj" />
15+
<Project Path="tests/Foundatio.Lucene.Elasticsearch.Tests/Foundatio.Lucene.Elasticsearch.Tests.csproj" />
16+
</Folder>
17+
<Folder Name="/benchmarks/">
18+
<Project Path="benchmarks/Foundatio.Lucene.Benchmarks/Foundatio.Lucene.Benchmarks.csproj" />
19+
</Folder>
20+
</Solution>

Foundatio.LuceneQuery.slnx

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
[![Build status](https://github.com/FoundatioFx/Foundatio.LuceneQuery/actions/workflows/build.yml/badge.svg)](https://github.com/FoundatioFx/Foundatio.LuceneQuery/actions)
2-
[![NuGet Version](https://img.shields.io/nuget/v/Foundatio.LuceneQuery.svg?style=flat)](https://www.nuget.org/packages/Foundatio.LuceneQuery/)
3-
[![feedz.io](https://img.shields.io/badge/endpoint.svg?url=https%3A%2F%2Ff.feedz.io%2Ffoundatio%2Ffoundatio%2Fshield%2FFoundatio.LuceneQuery%2Flatest)](https://f.feedz.io/foundatio/foundatio/packages/Foundatio.LuceneQuery/latest/download)
1+
[![Build status](https://github.com/FoundatioFx/Foundatio.Lucene/actions/workflows/build.yml/badge.svg)](https://github.com/FoundatioFx/Foundatio.Lucene/actions)
2+
[![NuGet Version](https://img.shields.io/nuget/v/Foundatio.Lucene.svg?style=flat)](https://www.nuget.org/packages/Foundatio.Lucene/)
3+
[![feedz.io](https://img.shields.io/badge/endpoint.svg?url=https%3A%2F%2Ff.feedz.io%2Ffoundatio%2Ffoundatio%2Fshield%2FFoundatio.Lucene%2Flatest)](https://f.feedz.io/foundatio/foundatio/packages/Foundatio.Lucene/latest/download)
44
[![Discord](https://img.shields.io/discord/715744504891703319?logo=discord)](https://discord.gg/6HxgFCx)
55

6-
# Foundatio.LuceneQuery
6+
# Foundatio.Lucene
77

88
A library for adding dynamic Lucene-style query capabilities to your .NET applications. Enable your users to write powerful search queries using familiar Lucene syntax, with support for Entity Framework and Elasticsearch.
99

1010
This project is a modern replacement for [Foundatio.Parsers](https://github.com/FoundatioFx/Foundatio.Parsers).
1111

12-
## ✨ Why Choose Foundatio LuceneQuery?
12+
## ✨ Why Choose Foundatio Lucene?
1313

1414
- 🔍 **Full Lucene Syntax** - Terms, phrases, fields, ranges, boolean operators, wildcards, regex
1515
-**Entity Framework Integration** - Convert Lucene queries directly to LINQ expressions
@@ -23,8 +23,8 @@ This project is a modern replacement for [Foundatio.Parsers](https://github.com/
2323
## 🚀 Quick Example
2424

2525
```csharp
26-
using Foundatio.LuceneQuery;
27-
using Foundatio.LuceneQuery.EntityFramework;
26+
using Foundatio.Lucene;
27+
using Foundatio.Lucene.EntityFramework;
2828

2929
// Parse a Lucene query
3030
var result = LuceneQuery.Parse("title:hello AND status:active");
@@ -40,24 +40,24 @@ var employees = await context.Employees.Where(filter).ToListAsync();
4040

4141
## 📚 Learn More
4242

43-
👉 **[Complete Documentation](https://lucenequery.foundatio.dev/)**
43+
👉 **[Complete Documentation](https://lucene.foundatio.dev/)**
4444

4545
Key topics:
4646

47-
- [Getting Started](https://lucenequery.foundatio.dev/guide/getting-started.html) - Installation and basic usage
48-
- [Query Syntax](https://lucenequery.foundatio.dev/guide/query-syntax.html) - Full syntax reference
49-
- [Entity Framework](https://lucenequery.foundatio.dev/guide/entity-framework.html) - EF Core integration
50-
- [Elasticsearch](https://lucenequery.foundatio.dev/guide/elasticsearch.html) - Elasticsearch Query DSL generation
51-
- [Visitors](https://lucenequery.foundatio.dev/guide/visitors.html) - AST transformation patterns
52-
- [Validation](https://lucenequery.foundatio.dev/guide/validation.html) - Query validation options
47+
- [Getting Started](https://lucene.foundatio.dev/guide/getting-started.html) - Installation and basic usage
48+
- [Query Syntax](https://lucene.foundatio.dev/guide/query-syntax.html) - Full syntax reference
49+
- [Entity Framework](https://lucene.foundatio.dev/guide/entity-framework.html) - EF Core integration
50+
- [Elasticsearch](https://lucene.foundatio.dev/guide/elasticsearch.html) - Elasticsearch Query DSL generation
51+
- [Visitors](https://lucene.foundatio.dev/guide/visitors.html) - AST transformation patterns
52+
- [Validation](https://lucene.foundatio.dev/guide/validation.html) - Query validation options
5353

5454
## 📦 CI Packages (Feedz)
5555

5656
Want the latest CI build before it hits NuGet? Add the Feedz source (read-only public) and install the pre-release version:
5757

5858
```bash
5959
dotnet nuget add source https://f.feedz.io/foundatio/foundatio/nuget -n foundatio-feedz
60-
dotnet add package Foundatio.LuceneQuery --prerelease
60+
dotnet add package Foundatio.Lucene --prerelease
6161
```
6262

6363
Or add to your `NuGet.config`:
@@ -79,7 +79,7 @@ CI builds are published with pre-release version tags (e.g. `1.0.0-alpha.12345+s
7979

8080
## 🤝 Contributing
8181

82-
Contributions are welcome! Please feel free to submit a Pull Request. See our [documentation](https://lucenequery.foundatio.dev/) for development guidelines.
82+
Contributions are welcome! Please feel free to submit a Pull Request. See our [documentation](https://lucene.foundatio.dev/) for development guidelines.
8383

8484
## 🔗 Related Projects
8585

benchmarks/Foundatio.LuceneQuery.Benchmarks/Benchmarks.cs renamed to benchmarks/Foundatio.Lucene.Benchmarks/Benchmarks.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using BenchmarkDotNet.Attributes;
2-
using Foundatio.LuceneQuery.Ast;
2+
using Foundatio.Lucene.Ast;
33
using Foundatio.Parsers.LuceneQueries.Visitors;
44
using OldParser = Foundatio.Parsers.LuceneQueries;
55

6-
namespace Foundatio.LuceneQuery.Benchmarks;
6+
namespace Foundatio.Lucene.Benchmarks;
77

88
/// <summary>
99
/// Core benchmarks for the Lucene Query Parser library.
@@ -123,7 +123,7 @@ public async Task<string> RoundTrip_Complex_Old()
123123
[Benchmark]
124124
public async Task<QueryNode> Visit_Complex()
125125
{
126-
var context = new Foundatio.LuceneQuery.Visitors.QueryVisitorContext();
126+
var context = new Foundatio.Lucene.Visitors.QueryVisitorContext();
127127
return await _visitor.AcceptAsync(_complexDoc, context);
128128
}
129129

benchmarks/Foundatio.LuceneQuery.Benchmarks/EntityFrameworkBenchmarks.cs renamed to benchmarks/Foundatio.Lucene.Benchmarks/EntityFrameworkBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
using BenchmarkDotNet.Configs;
44
using BenchmarkDotNet.Jobs;
55
using BenchmarkDotNet.Toolchains.InProcess.Emit;
6-
using Foundatio.LuceneQuery.EntityFramework;
6+
using Foundatio.Lucene.EntityFramework;
77
using Microsoft.EntityFrameworkCore;
88

9-
namespace Foundatio.LuceneQuery.Benchmarks;
9+
namespace Foundatio.Lucene.Benchmarks;
1010

1111
/// <summary>
1212
/// Benchmarks for Entity Framework query generation from Lucene queries.

benchmarks/Foundatio.LuceneQuery.Benchmarks/Foundatio.LuceneQuery.Benchmarks.csproj renamed to benchmarks/Foundatio.Lucene.Benchmarks/Foundatio.Lucene.Benchmarks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<ProjectReference Include="..\..\src\Foundatio.LuceneQuery\Foundatio.LuceneQuery.csproj" />
20-
<ProjectReference Include="..\..\src\Foundatio.LuceneQuery.EntityFramework\Foundatio.LuceneQuery.EntityFramework.csproj" />
19+
<ProjectReference Include="..\..\src\Foundatio.Lucene\Foundatio.Lucene.csproj" />
20+
<ProjectReference Include="..\..\src\Foundatio.Lucene.EntityFramework\Foundatio.Lucene.EntityFramework.csproj" />
2121
</ItemGroup>
2222

2323
</Project>
File renamed without changes.

build/common.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
55
<Product>Foundatio</Product>
66
<Description>Dynamic Lucene-style query support for Entity Framework and Elasticsearch. Enable powerful user-driven search queries in your .NET applications.</Description>
7-
<PackageProjectUrl>https://github.com/FoundatioFx/Foundatio.LuceneQuery</PackageProjectUrl>
8-
<PackageReleaseNotes>https://github.com/FoundatioFx/Foundatio.LuceneQuery/releases</PackageReleaseNotes>
7+
<PackageProjectUrl>https://github.com/FoundatioFx/Foundatio.Lucene</PackageProjectUrl>
8+
<PackageReleaseNotes>https://github.com/FoundatioFx/Foundatio.Lucene/releases</PackageReleaseNotes>
99
<PackageTags>Lucene;Query;Parser;Search;EntityFramework;LINQ;Elasticsearch;Dynamic;Filtering</PackageTags>
1010
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
1111
<MinVerTagPrefix>v</MinVerTagPrefix>

0 commit comments

Comments
 (0)