我在solr配置中遇到错误.
Caused by: org.apache.solr.common.SolrException: Unable to use updateLog: _version_field must exist in schema, using indexed="true" stored="true" and multiValued="false" (_version_ does not exist)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:806)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:619)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:1021)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051)
... 10 more
Caused by: org.apache.solr.common.SolrException: Unable to use updateLog: _version_field must exist in schema, using indexed="true" stored="true" and multiValued="false" (_version_ does not exist)
at org.apache.solr.update.UpdateLog.init(UpdateLog.java:245)
at org.apache.solr.update.UpdateHandler.initLog(UpdateHandler.java:84)
at org.apache.solr.update.UpdateHandler.<init>(UpdateHandler.java:134)
at org.apache.solr.update.DirectUpdateHandler2.<init>(DirectUpdateHandler2.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:526)
at org.apache.solr.core.SolrCore.createUpdateHandler(SolrCore.java:597)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:790)
... 13 more …Run Code Online (Sandbox Code Playgroud) 我想创建一个应用程序来同步Tally Sales Order和Sales Invoice从Tally到我们的SQL数据库.目前我正在使用测试目的Tally ERP 9 Educational Version.
我已经创建了一些销售订单,并且需要所有订单以及来自计数器的详细信息 tally ODBC Sql query
uptil按照我的研究,我得到一些销售订单的细节,如Voucher Number,Order Date从符合ODBC表"凭证类型" ..等等CompanyVoucher.但很少有细节是空的,尽管相关数据按照统计顺序存在.像Reference,Party Name...等等.
此外,我无法找到Tally ODBC table其他几个与销售订单相关的数据等item name, item number , item quantity, rate and order total, order no.
任何人都可以建议SQL Query或Tally ODBC Table从哪里可以找到这些订单相关数据.此外,我不确定,如果我们无法访问这些细节Educational Version,以及访问这些细节的任何限制Educational Version.
所以请建议我这个.
我想myfield在solr中对字段应用不区分大小写的搜索.
我用Google搜索了一下,我发现,我需要应用LowerCaseFilterFactory字段类型和字段应该是solr.TextFeild.
我在我的应用程序中schema.xml重新索引数据,然后我的搜索似乎也区分大小写.
以下是我执行的搜索.
http://localhost:8080/solr/select?q=myfield:"cloud university"&hl=on&hl.snippets=99&hl.fl=myfield
Run Code Online (Sandbox Code Playgroud)
以下是字段类型的定义
<fieldType name="text_en_splitting" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- in this example, we will only use synonyms at query time
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
-->
<!-- Case insensitive stop word removal.
add enablePositionIncrements=true in both the index and query
analyzers to leave a 'gap' for more accurate phrase queries.
-->
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords_en.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" …Run Code Online (Sandbox Code Playgroud) 我有一个表格接受Asp.net中的json帖子,我需要从Flash As3调用...
我正在使用下面的代码来做到这一点.我看过一些他们说工作正常的帖子.但我遇到下面的错误
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
这是我的代码.
var messages:Array = new Array ();
messages.push({"From":fromemailTxt.text,"To": ToemailTxt.text,"Body": BodyText.text,"Subject":SubjectText.text});
var JsonObj:String = JSON.encode(messages);
trace(JsonObj);
var variables:URLVariables=new URLVariables(JsonObj);
RequestURL= srvStringURL;
var JSONLoader:URLLoader = new URLLoader();
JSONLoader.dataFormat=URLLoaderDataFormat.TEXT;
JSONLoader.addEventListener(IOErrorEvent.IO_ERROR, GetBookmarkURLError, false, 0, true);
JSONLoader.addEventListener(Event.COMPLETE, parseBookmarkURLResult, false, 0, true);
var hdr:URLRequestHeader = new URLRequestHeader("Content-type", "application/json");
var request:URLRequest = new URLRequest(RequestURL);
request.requestHeaders.push(hdr);
request.data=variables;
request.method = URLRequestMethod.POST;
try
{
JSONLoader.load(request);
}
catch (error:ArgumentError)
{
trace("An …Run Code Online (Sandbox Code Playgroud) 我在我的Solr中使用词干,但我并不总是想要为每次搜索应用词干.我想在一个特定的查询解析器上禁用词干,我可以这样做吗?
我需要一个正则表达式,它给我未封闭的标签,我可以找到它们并以编程方式关闭它们.
就像,我有下面的文字
<tag>
<p> hello world <p> this is <p>test.</p> this is test. <p> end it
</tag>
Run Code Online (Sandbox Code Playgroud)
我想从中找到未封闭的标签并使用Regex关闭它们.
任何的想法??谢谢Meghana