BExIS.Ddm.Providers.LuceneProvider.SearchDesigner.SetPrimaryDataAttributeToNode C# (CSharp) Method

SetPrimaryDataAttributeToNode() private method

private SetPrimaryDataAttributeToNode ( XmlElement xmlElement ) : XmlElement
xmlElement System.Xml.XmlElement
return System.Xml.XmlElement
        private XmlElement SetPrimaryDataAttributeToNode(XmlElement xmlElement)
        {
            // names
            XmlAttribute xa = this._configXML.CreateAttribute("display_name");
            xa.Value = "Primary Data";
            xmlElement.Attributes.Append(xa);

            xa = this._configXML.CreateAttribute("lucene_name");
            xa.Value = "Primarydata";
            xmlElement.Attributes.Append(xa);

            //types
            xa = this._configXML.CreateAttribute("type");
            xa.Value = "primary_data_field";
            xmlElement.Attributes.Append(xa);

            xa = this._configXML.CreateAttribute("primitive_type");
            xa.Value = "String";
            xmlElement.Attributes.Append(xa);

            // parameter for index
            xa = this._configXML.CreateAttribute("store");
            xa.Value = "yes";
            xmlElement.Attributes.Append(xa);

            xa = this._configXML.CreateAttribute("analysed");
            xa.Value = "yes";
            xmlElement.Attributes.Append(xa);

            xa = this._configXML.CreateAttribute("norm");
            xa.Value = "yes";
            xmlElement.Attributes.Append(xa);

            //boost
            xa = this._configXML.CreateAttribute("boost");
            xa.Value = "3";
            xmlElement.Attributes.Append(xa);

            return xmlElement;
        }