solr

How to pass a date into a ColdFusion collection to be searched

谁说我不能喝 提交于 2019-12-11 15:42:02
问题 I'm using a ColdFusion collection to search events and I need to pass a date into the collection as a "mmm" so it can be searched. Every time I try I get an error. custom4="DateFormat(start_date, "mmm")" Update: I'm trying to search "month" of the current year 回答1: You should use the above code like custom4=dateFormat(start_date, "mmm") (Remove the outer double quotes) 回答2: Quotes aren't the problem (and the suggestion of removing them actually causes an error). The problem is DateFormat()

SolrCloud OpenNLP error Can't find resource 'opennlp/en-sent.bin' in classpath or '/configs/_default'

梦想的初衷 提交于 2019-12-11 15:41:08
问题 I have error when using Apache OpenNLP with Solr (ver. 7.3.0) in Cloud mode. When I add field type to managed-schema using open nlp like this: <fieldType name="text_opennlp" class="solr.TextField"> <analyzer> <tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="opennlp/en-sent.bin" tokenizerModel="opennlp/en-token.bin" /> </analyzer> </fieldType> <field name="content" type="text_opennlp" indexed="true" termOffsets="true" stored="true" termPayloads="true" termPositions="true"

Refine search results for more words in SOLR

一个人想着一个人 提交于 2019-12-11 15:26:46
问题 I want achieve refine search results when user enter more words by using AND operator between token compassion results. I tried set qo=AND but doesn't work and return results which contains only one of entered words. For instance I using for field searching analyzer like this: <fieldType name="serch_text" class="solr.TextField"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.EdgeNGramFilterFactory"/> <filter class="solr

How to use Min,max and average with Solr.net

与世无争的帅哥 提交于 2019-12-11 15:22:34
问题 I found http://code.google.com/p/solrnet/wiki/Stats link. But i cannot understand properly. I want to use min,max kind of function with solr query. My query(Display min, max and average price of Round shape and color D and clarity FL and caratweight.(This query will be genarated based on user's selection dynamically) (Shape:"Round") AND (Color:"D") AND (Clarity:"FL") AND (CaratWeight:[1 TO 10]) But how can i use such kind of function and select specific column. Now i am somewhat nearer... By

Solr spellcheckin randomly working

时光怂恿深爱的人放手 提交于 2019-12-11 15:05:14
问题 I've got a problem with the spell checker integrated in solr. I have (for now) two cores, configured with the same solrconfig.xml (with right settings for the spellchecker) and a slightly different XML (with the same configuration for spellchecker). The problem is that for one of the core the spell checker works perfectly, for the other not. For the not working one from Solr Admin I can see that the field "spelling" (the field the spell check uses) is indexed but no stored. Any idea? I don't

Searching for a phrase in proximity to another token in SOLR

对着背影说爱祢 提交于 2019-12-11 14:48:51
问题 The following is proximity search in SOLR: "john josh"~12 But what is I wanted to search for josh token being close not to john, but to the expression "john smith"? Is there a way to make something like this work: "("john smith") josh"~12 回答1: Check these two parsers: ComplexPhraseQueryParser XMLQueryParser I think the first one should do what you need, and maybe both can. 来源: https://stackoverflow.com/questions/49010974/searching-for-a-phrase-in-proximity-to-another-token-in-solr

delta-import for using multiple table in solr

耗尽温柔 提交于 2019-12-11 14:38:40
问题 I am new user to Solr. When I run full_import command for multiple tables it is working fine. The updated dates are written to dataimport.properties file. when i run delta import it is giving Exception occured while initilizing context.. The query deltaImportQuery and deltaQuery in data-config.xml` is as follows: <dataConfig> <dataSource name="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/hellodb" user="root" password="root" batchSize="-1" /> <document>

categoryname search in Websphere Commerce 8 SOLR

不打扰是莪最后的温柔 提交于 2019-12-11 14:17:31
问题 We noticed following issues with 'categoryname' field search in WebSphere Commerce, so trying to understand if it's rather a data set up issue or Commerce Search/SOLR is not designed to work with such type of scenarios. We have more than 100 catalogs that site and customer specific, customers get their own catalog/category/items when they log in and there is no issue with category browsing or order placement, but having an issue with OOB keyword search since OOB IBM_findProductsBySearchTerm

Solr Tomcat org.apache.solr.common.SolrException: lazy loading error

允我心安 提交于 2019-12-11 13:57:06
问题 Ubuntu 14.04 I installed using sudo apt-get install solr-tomcat. It seems the "core" functionality was installed and is working, but not any Plugins (or I just don't know where to look). I am trying to use the extract function, which is a Plugin. When I attempt, I get this org.apache.solr.common.SolrException: lazy loading error at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:260) at org.apache.solr.core.RequestHandlers

SolrServer: is schema required when using addBean( Object bean )?

核能气质少年 提交于 2019-12-11 13:51:53
问题 I saw two methods in SolrServer: addBean( Object bean ) and add (SolrDocument doc ). My question is: If I can add objects directly using addBean(), do I need to create any schema for the object? Doesn't Solr look at fields of the object and determine the schema from there? Or does Solr serialize the object into a string first and then proceeds with a normal add? (This might require schema specification) 回答1: Solr supports a Schemaless Mode . When starting Solr this way, you are initially not