lucene.net - Lucene wildcards and words with the letter 's' on the end -


I have some problems knowing about what is happening with my discovery of the searches. Gloves: * Search: gloves * Search: Gloves * (Numbers: gloves *) or (Numbers: Gloves Search: Gloves SpellCheckerSource: Gloves) or (Numbers: Gloves * Search: Gloves * SpellCheckerSource: Gloves * )

For the above I get the following written time again

  (() () ()) (Numbers: Search gloves: Gloves SpellCheckerSource: (Search: gloves *) ConstantScore (SpellCheckerSource: gloves *))   

Using this Luke, I query in Luke What are you doing to bring to try to see it.

What I want to be able to do now is finding a word i.e. gloves * which ends (() () () ())

I do not understand that Why does this kind of translation be there with my query or with my index and this issue?

Luke says to me as the structure description

  lucene.BooleanQuery section = 3, maxClauses is as follows = 1024 Section 0: Lucene.BooleanQuery section = 3, maxClauses = 1024 Section 0: Want lucene.BooleanQuery section = 0, maxClauses = 1024, coord = false Volume 1: Want lucene.BooleanQuery section = 0, maxClauses = 1024, coord = false Clause 2: Lucene.BooleanQuery section = 0, maxClauses = 1024, coord = false Volume 1: Want lucene.BooleanQuery section = 3, maxClauses = 1024 Section 0: Lucene.TermQuery words: Area = 'Id' text = 'gloves' section 1: Lucene.Term time: field = 'Search' text = 'gloves' section 2: Lucene.TermQuery If: area = 'SpellCheckerSource' text = 'glove' section 2: should be lucene.BooleanQuery section = 3, maximum clauses = 1024 section 0: lucene should.bob oleanQuery section = 0, maxClauses = 1024, coord = false Volume 1: Should lucene .ConstantScore, ConstantScore (Search: Gloves *) Filter: Search: Gloves * Segment 2: Lucene.ConstantScoreQuery, ConstantScore (SpellCheckerSource: Gloves *) Filter: SpellCheckerSource: Glove *   

This Strange Looks at me at many levels

  1. Why have I been translated empty section
  2. Why is it? I have a combination of TermQuery, ConstantScoreQuery and BooleanQuery?
  3. Where are ConstantScoreQuery Generating?

    It seems that everything works fine for me when I search for a word out and break the combination of both of the combination of either IE glove or a wildcard.

    This is likely because there is no rule in your index that matches "glove *" is.

    When a multitime is rewritten, it finds the appropriate conditions, and the primitive query (such as Ter MQuery ) on those conditions If no suitable words are found, you will see an empty query generated instead, like what you have shown.

    A termology is already a primitive query, and it is not necessary to rewrite it again. It does not need to tell words or anything, it only runs the thing.

    Its second piece analysis is to be analyzed in your query for gloves glove ( English analyzer perhaps?) Used to be. MultiTermQueries (wildcards, fuzzy, regex, and prefix queries) by not analyzed by QueryParser . Your prefix is ​​trying to find the query "gloves", but all of these plural s has been removed, so it is not getting any matching.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -