rclabo commented on issue #641:
URL: https://github.com/apache/lucenenet/issues/641#issuecomment-1183283743
Thank you for your question. I wrote the tutorial and will try to help you.
The tutorial makes no reference to Lucene.NET 3.0.3 and is instead for
Lucene.NET 4.8.
Perhaps when you added the NuGet reference you left out the –prerelease
switch. (see
https://lucenenet.apache.org/quick-start/tutorial.html#add-nuget-references)
The command should be:
dotnet add package Lucene.Net --prerelease
The –prerelease part of that command is what will add the reference to the
Lucene.NET 4.8 since it’s still in beta. If you leave out –prerelease then it
will create a reference to 3.0.3 which is incorrect and will not compile.
You can confirm that it referenced the correct version of Lucene.NET by
looking at the .csproj file created
(https://lucenenet.apache.org/quick-start/tutorial.html#viewing-the-two-main-files
)
In that project file, the following two lines should show the latest beta
version of Lucene.Net 4.8
<PackageReference Include="Lucene.Net" Version="4.8.0-beta00016" />
<PackageReference Include="Lucene.Net.Analysis.Common"
Version="4.8.0-beta00016" />
Please let me know if this clears up your issue.
Thank you for trying out Lucene.NET. It’s a great open source Search
Library.
Best,
-Ron
rclabo
From: Jim Chiu ***@***.***
Sent: Wednesday, July 13, 2022 7:07 AM
To: apache/lucenenet
Cc: Subscribed
Subject: [apache/lucenenet] [Help] Fail to compile official tutorial example
(Issue #641)
Hi,
I followed the tutor installing the latest 4.8.0 beta Lucent. However, the
code cannot pass compiling as shown below.
The Assembly references to the wrong person of Lucene (3.0.3).
I have tried remove the NuGet packages and reinstall again. It did not help.
Any suggestion? Thanks!
<https://user-images.githubusercontent.com/2939228/178718745-5af84635-e75a-4ac0-80d5-b604a85e0f94.jpg>
截圖 2022-07-13 下午6 47 55
<https://user-images.githubusercontent.com/2939228/178718981-a520a75a-9522-4d11-8d46-69e0dc580ee5.jpg>
截圖 2022-07-13 下午7 02 05
—
Reply to this email directly, view it on GitHub
<https://github.com/apache/lucenenet/issues/641> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU7VW5QP5J7YXF5LEM4SRDVT2POLANCNFSM53OJ74VQ>
.
You are receiving this because you are subscribed to this thread.
<https://github.com/notifications/beacon/ABU7VW3TNKZNHFWJZDAAJLTVT2POLA5CNFSM53OJ74V2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4TNON2OA.gif>
Message ID: ***@***.***>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]