Hi Everyone, I'm really hating SOLR. All I want is to define a text field that data can be indexed into and which is searchable. Should be super simple. But I run into issue after issue. I'm running SOLR 7.3 because it's compatible with the version of NUTCH I'm running.
The docs say that SOLR ships with a default TextField but that seems to be wrong. I define: <field name="metadata.myfield" type="TextField" stored="true" indexed="true"/> The above throws error "Unable to create core [MyCore] Caused by: Unknown fieldType 'TextField' specified on field metadata.myfield" Then I try: <field name="metadata.myfield" type="Text" stored="true" indexed="true"/> Same error. Then as a workaround I got into defining a "Text_General" field because I couldn't get Text to work. Text_General extends the Text field which seems to indicate there should be a text field built into SOLR!!!!! Text_General causes a new set of problems. How does one go about using the supposed default text field available in SOLR? When I defined Text_General: <updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory" name="add-schema-fields"> <lst name="typeMapping"> <str name="valueClass">java.lang.String</str> <str name="fieldType">text_general</str> <bool name="default">true</bool> </lst> Text_General with type=string complains when I try and insert data that has characters and numbers: java.lang.Exception: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:xxxx/solr/MyCore: ERROR: [doc= http://xxx.xxx.com/services/mydocument.htm] Error adding field 'metatag.myfield'='15c0188' msg=For input string: "15c0188" I'm very frustrated. If anyone is able to help sort this out I would really appreciate it! What do I need to do to be able to define a simple text field that is stored and searchable? Thank you! -- *Fig Leaf Software, Inc.* https://www.figleaf.com/ <https://www.figleaf.com/> Full-Service Solutions Integrator