To determine if there is data on Lucene.net

Asked 2 years ago, Updated 2 years ago, 48 views

We are developing an application in the following environments:

  • Visual Studio 2019
  • C#
  • Windows 10
  • Lucene.net

I'd like to use Lucene.net to determine if there are any words, but now when I search for the word "foo" in the title field, it says "title:foo".

So what kind of query syntax should I use to search for title: no word (blank) and title: no word (blank) in the title field?

c# lucene

2022-09-30 18:14

1 Answers

Selfless.

Query query = new WildcardQuery( new Term("title", "*"));

Now we know that we can search for "title: Word with (not blank)"

Sorry for the trouble.


2022-09-30 18:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.