Re: Documents cannot be searched immediately when indexed using REST API with Solr Cloud

2015-03-19 Thread Liu Bo
-sorlcloud/ All the best Liu Bo On 19 March 2015 at 17:54, Zheng Lin Edwin Yeo wrote: > Hi, > > I'm using Solr Cloud now, with 2 shards known as shard1 and shard2, and > when I try to index rich-text documents using REST API or the default > Documents module in Solr Admin UI, the

Re: Where to specify numShards when startup up a cloud setup

2014-04-18 Thread Liu Bo
ge in context: > http://lucene.472066.n3.nabble.com/Where-to-specify-numShards-when-startup-up-a-cloud-setup-tp4078473p4128566.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- All the best Liu Bo

Re: Multiple Languages in Same Core

2014-03-26 Thread Liu Bo
s run a query on a N-Gram analyzed field and with filter queries on store_id field. The "suggest" is actually a query. It may not perform as well as suggestion but can do the trick. You can try it to build a additional N-GRAM field for suggestion only and search on it with fq on your &qu

Re: Grouping results with group.limit return wrong numFound ?

2014-01-01 Thread Liu Bo
8 PM, tasmaniski > wrote: > @kamaci > Ofcourse. That is the problem. > > "group.limit is: the number of results (documents) to return for each > group." > NumFound is number of total found, but *not* sum number of *return for each > group.* > > @Liu Bo > seems to be t

Re: Grouping results with group.limit return wrong numFound ?

2013-12-31 Thread Liu Bo
ults but I show only 3 that works OKBut in > numFound I > > still have 20 for apress publisher... > > > > > > > > -- > > View this message in context: > > http://lucene.472066.n3.nabble.com/Grouping-results-with-group-limit-return-wrong-numFound-tp4108174.html > > Sent from the Solr - User mailing list archive at Nabble.com. > -- All the best Liu Bo

Re: Chaining plugins

2013-12-31 Thread Liu Bo
c(ex. save the query to file) . > : But I dont want to touch solr source code, all I want is to add code(like > : plugin). if i understand it right I want to write my own search handler > , do > : some logic , then pass the data to solr default search handler. > > > > > -Hoss > http://www.lucidworks.com/ > -- All the best Liu Bo

Re: PostingsSolrHighlighter

2013-12-18 Thread Liu Bo
.12.2013 09:55, schrieb Liu Bo: > >> hi Josip >> > > hi liu, > > > for the 1 question we've done similar things: copying search field to a >> text field. But highlighting is normally on specific fields such as tittle >> depending on how the search cont

Re: an "array" liked string is treated as multivalued when adding doc to solr

2013-12-18 Thread Liu Bo
l the best Liu Bo On 18 December 2013 15:26, Alexandre Rafalovitch wrote: > If this happens rarely and you want to deal with in on the way into Solr, > you could just keep one of the values, using URP: > > http://lucene.apache.org/solr/4_6_0/solr-core/org/apache

Re: PostingsSolrHighlighter

2013-12-18 Thread Liu Bo
ghlighted "text". This is essential, > because we use copyfield to put almost everything to searchable_text > (title, subtitle, description, ...) > > 2.) I can't get ellipsis working i tried hl.tag.ellipsis=..., > f.text.hl.tag.ellipsis=..., configuring it in RequestHandler noting seems > to work, maxAnalyzedChars is just cutting the sentence? > > Kind Regards > > Josip Delic > > -- All the best Liu Bo

Re: an "array" liked string is treated as multivalued when adding doc to solr

2013-12-17 Thread Liu Bo
n email. I trust our business logic and data integrity more than solr, I will definitely not do this again. ;-) All the best Liu Bo On 11 December 2013 07:21, Furkan KAMACI wrote: > Hi Liu; > > Yes. it is an expected behavior. If you send data within square brackets > Solr will behav

an "array" liked string is treated as multivalued when adding doc to solr

2013-12-05 Thread Liu Bo
? Is there any way to tell solr this is not a "multivalued value" add don't break it? Your help and suggestion will be much of my appreciation. -- All the best Liu Bo

Re: deleting a doc inside a custom UpdateRequestProcessor

2013-11-18 Thread Liu Bo
gt; > if( condition 1 ) > { > --> DELETE DUPLICATE DOC in INDEX <-- > addIncomingDoc = true; > } > > return addIncomingDoc; > } -- All the best Liu Bo

Re: Multi-core support for indexing multiple servers

2013-11-12 Thread Liu Bo
and then use DIH to get/merge content > from the other source/server. Seem feasible/appropriate? I spec'd it out > and it seems to make sense... > > R > > > On Nov 11, 2013, at 11:25 PM, Liu Bo wrote: > > > > like Erick said, merge data from different datasour

Re: Multi-core support for indexing multiple servers

2013-11-11 Thread Liu Bo
o point of indexing > > - Using DIH at one time indexing > > - At application whenever there is transaction to the details that we > are > > storing in Solr. > > > > > > > > > > > > -- > > View this message in context: > > > http://lucene.472066.n3.nabble.com/Multi-core-support-for-indexing-multiple-servers-tp4099729p4099933.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > > -- All the best Liu Bo

Re: eDisMax, multiple language support and stopwords

2013-11-11 Thread Liu Bo
y((headline_fr:wild | > headline_en:wild)))~3))/no_coord > > > > > > If I add "and" to the French stopwords list, I *do* get results, and > the > > > parsed query is: > > > > > > (+((DisjunctionMaxQuery((headline_fr:osca | headline_en:oscar)) > > > DisjunctionMaxQuery((headline_fr:wild | > headline_en:wild)))~2))/no_coord > > > > > > This implies that the only solution is to have a minimal, shared > > stopwords > > > list for all languages I want to support. Is this correct, or is there > a > > > way of supporting this kind of searching with per-language stopword > > lists? > > > > > > Thanks for any ideas! > > > > > > Tom > > > > > > -- All the best Liu Bo

how does solr load plugins?

2013-10-16 Thread Liu Bo
spath. Please correct me if I am wrong, Is there any ways to use resources in plugin jars such as configuration file? BTW is there any difference between SolrResourceLoader with tomcat webapp classLoader? -- All the best Liu Bo

Re: SolrDocumentList - bitwise operation

2013-10-13 Thread Liu Bo
ntList results1 = responseA.getResults(); > SolrDocumentList results2 = responseB.getResults(); > > results1 : d1, d2, d3 > results2 : d1,d2, d4 > > Return : d1, d2 > > Regards, > Michael > -- All the best Liu Bo

Re: SolrCore 'collection1' is not available due to init failure

2013-10-10 Thread Liu Bo
r and restart tomcat to see what happens. -- All the best Liu Bo

Re: Multiple schemas in the same SolrCloud ?

2013-10-10 Thread Liu Bo
s message in context: > http://lucene.472066.n3.nabble.com/Multiple-schemas-in-the-same-SolrCloud-tp4094279p4094729.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- All the best Liu Bo

Re: documents are not commited distributively in solr cloud tomcat with core discovery, range is null for shards in clusterstate.json

2013-10-08 Thread Liu Bo
tomcat is much easier and clean than coreAdmin described in the wiki: http://wiki.apache.org/solr/SolrCloudTomcat. It costs me some time to move from jetty to tomcat, but I think our IT team will like this way. :) On 6 October 2013 23:53, Liu Bo wrote: > Hi all > > I'v

documents are not commited distributively in solr cloud tomcat with core discovery, range is null for shards in clusterstate.json

2013-10-06 Thread Liu Bo
;replicas":{"core_node2":{ "state":"active", "core":"content", "node_name":"10.199.46.202:8080_solr", "base_url":"http://10.199.46.202:8080/solr";, "leader":"true"}}}, "shard2":{ * "range":null,* "state":"active", "replicas":{"core_node3":{ "state":"active", "core":"content", "node_name":"10.199.46.165:8080_solr", "base_url":"http://10.199.46.165:8080/solr";, "leader":"true", *"router":"implicit"*}} -- All the best Liu Bo

documents are not commited distributively in solr cloud tomcat with core discovery, range is null for shards in clusterstate.json

2013-09-30 Thread Liu Bo
:"10.199.46.202:8080_solr", "base_url":"http://10.199.46.202:8080/solr";, "leader":"true"}}}, "shard2":{ * "range":null,* "state":"active", "replicas":{"core_node3":{ "state":"active", "core":"content", "node_name":"10.199.46.165:8080_solr", "base_url":"http://10.199.46.165:8080/solr";, "leader":"true", *"router":"implicit"*}} -- All the best Liu Bo

how can I use DataImportHandler on multiple MySQL databases with the same schema?

2013-09-17 Thread Liu Bo
lrJ? If neither of these two ways is working, I think I am going to reuse the DAO of the old project and feed the data to solr using SolrJ, probably using embedded Solr server. Your help will be much of my appreciation. <http://wiki.apache.org/solr/DataImportHandlerFaq>-- All the best Liu Bo