The Document _doc=new Document ();
Field titleField=new Field (" title ", the title of the Store. YES, Index, ANALYZED);
Field urlField=new Field (" url ", url and Store. YES, Index, ANALYZED);
_doc. Add (titleField);
_doc. Add (urlField);
_writer. AddDocument (_doc);
}
Code is ANALYZED according to ANALYZED "always be resolved or is not a field" error
CodePudding user response:
ANALYZED the variable is undefinedCodePudding user response:
Check out the Index to see whether there was ANALYZED the variables in the classCodePudding user response:
Ok, now solve the problem, thank you