Solr 7.7.1 indexing failing with analysis error: startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards

2019-05-27 Thread SAM
indexing a message on solr7.7.1 is failing with the following error. any help is appreciated. attaching schema files. 2019-05-24 19:32:42.010 ERROR (qtp1115201599-17) [c:bn_sample s:shard1 r:core_node2 x:bn_sample_shard1_replica_n1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException:

Re: SolrCloud Config file

2016-04-12 Thread Sam Xia
ot; wrote: >Do note by the way that as of Solr 5.5, the bin/solr script has an >option for uploading and downloading configsets. Try typing > >bin/solr zk -help > >Best, >Erick > >On Mon, Apr 11, 2016 at 6:30 PM, Shawn Heisey wrote: >> On 4/11/2016 6:40 PM, Sa

Re: SolrCloud Config file

2016-04-11 Thread Sam Xia
t;}} If you run the following steps, you would be able to reproduce the issue every time. Step 1) bin/solr start -e cloud -noprompt Step 2) bin/solr create -c topic -d sample_techproducts_configs Step 3) ./zkcli.sh -cmd upconfig -zkhost localhost:9983 -confname topic -solrhome /locm/solr-5.5.0/ -confdir /locm/

Re: SolrCloud Config file

2016-04-11 Thread Sam Xia
I tried solr-6.0 and was able to see the same issue. Please help. Thanks On 4/11/16, 3:59 PM, "Sam Xia" wrote: >Hi, > >I installed Solr 5.5 in my test server but was having issue updating the >solrconfig.xml. > >Solr is installed in /locm/solr-5.5.0/ folder

SolrCloud Config file

2016-04-11 Thread Sam Xia
Hi, I installed Solr 5.5 in my test server but was having issue updating the solrconfig.xml. Solr is installed in /locm/solr-5.5.0/ folder 1) First I create a topic connection with the following command: bin/solr create -c topic -d topic_configs_ori But there is no folder name topc in /locm/

Re: Indexing database in Solr using Data Import Handler

2014-07-17 Thread Sam Barber
Hi, You have the wrong varname in your sub query. select favouritedby from filefav where id= '${filemetadata.id}' should be select favouritedby from filefav where id= '${restaurant.id}'

Re: 4.6 Core Discovery coreRootDirectory not working

2014-01-29 Thread Sam Batschelet
On Jan 29, 2014, at 4:31 PM, Sam Batschelet wrote: > Hello this is my 1st post to you group I am in the process of setting up a > development environment using solr. We will require multiple cores managed > by multiple users in the following layout. I am running a fairly vanilla >

4.6 Core Discovery coreRootDirectory not working

2014-01-29 Thread Sam Batschelet
. ## solr.xml ${host:} ${jetty.port:8883} ${hostContext:solr} ${zkClientTimeout:15000} ${genericCoreNodeNames:true} ${socketTimeout:0} ${connTimeout:0} Thanks -Sam

Re: lang.fallback doesn't work when using lang.fallbackFields

2013-07-28 Thread Sam Dillingham
> > > > > > > -- > > View this message in context: > http://lucene.472066.n3.nabble.com/lang-fallback-doesn-t-work-when-using-lang-fallbackFields-tp4076048.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Sam

An issue with atomic updates?

2013-06-28 Thread Sam Antique
:"...", "field1":{"add":"value"}}]' it adds fine and return success. But if I continue: /update/json?commit=true -d '[{"id":"...", "field1":{"none-sense":"value"}}]' It still returns status:0, which is a bit misleading. Is this a known issue? Thanks, Sam

filter query by string length or word count?

2013-05-22 Thread Sam Lee
I have schema.xml ... how can I query docs whose body has more than 80 words (or 80 characters) ?

Re: Solr Swap Function doesn't work when using Solr Cloud Beta

2012-09-24 Thread sam fang
the backup. If one crashed, can easily swap with backup core and quickly serve the search request. Best Regards, Sam On Sun, Sep 23, 2012 at 2:51 PM, Mark Miller wrote: > FYI swap is def not supported in SolrCloud right now - even though it may > work, it's not been thought about a

Re: Solr Swap Function doesn't work when using Solr Cloud Beta

2012-09-21 Thread sam fang
Hi Chris, Thanks for your help. Today I tried again and try to figure out the reason. 1. set up an external zookeeper server. 2. change /opt/solr/apache-solr-4.0.0-BETA/example/solr/solr.xml persistent to true. and run below command to upload config to zk. (renamed multicore to solr, and need to

Re: Solr Swap Function doesn't work when using Solr Cloud Beta

2012-09-20 Thread sam fang
lr/test1-ondeck/| host1:18000/solr/test1/&q=*:*&ids=SOLR1000&distrib=false&isShard=true&wt=javabin&rows=10&version=2} status=0 QTime=1 Sep 20, 2012 10:42:31 PM org.apache.solr.core.SolrCore execute INFO: [test1] webapp=/solr path=/select params={q=*:*&wt=python} sta

LUCENE-2899 patch, OpenNLPTokenizer compile error

2012-07-19 Thread sam wu
1.7. Is patch only work for java 1.6 ?, or I am doing something wrong. Thanks Sam

Re: hierarchical faceting?

2012-05-01 Thread sam
yup. and ?facet.field=colors_facet On Mon, Apr 30, 2012 at 9:35 PM, Chris Hostetter wrote: > > : Is there a tokenizer that tokenizes the string as one token? > > Using KeywordTokenizer at query time should

Re: can I use different tokenizer/analyzer for facet count query?

2012-04-25 Thread sam
Do I need to have another field of type String? I'm using KeywordTokenizer for query... On Wed, Apr 25, 2012 at 10:41 AM, sam ” wrote: > I have the following in schema.xml > positionIncrementGap="100">

can I use different tokenizer/analyzer for facet count query?

2012-04-25 Thread sam
I have the following in schema.xml And, I have the following doc: blues$Teal/Turquoise ... Response of the query: http://localhost:8983/solr/select/?q=*:*&facet=true&facet.field=colors&rows=100

Re: hierarchical faceting?

2012-04-18 Thread sam
okenizer that tokenizes the string as one token? I tried to extend Tokenizer myself but it fails: public class AsIsTokenizer extends Tokenizer { @Override public boolean incrementToken() throws IOException { return true;//or false; } } On Wed, Apr 18, 2012 at 11:33 AM, sam ”

Re: hierarchical faceting?

2012-04-18 Thread sam
Darren Govoni wrote: > Put the parent term in all the child documents at index time > and the re-issue the facet query when you expand the parent using the > parent's term. works perfect. > > On Wed, 2012-04-18 at 10:56 -0400, sam ” wrote: > > I have hierarchical colors

hierarchical faceting?

2012-04-18 Thread sam
I have hierarchical colors: text_path is TextField with PathHierarchyTokenizerFactory as tokenizer. Given these two documents, Doc1: red Doc2: red/pink I want the result to be the following: ?fq=red ==> Doc1, Doc2 ?fq=red/pink ==> Doc2 But, with PathHierarchyTokenizer, Doc1 is included for the

Re: custom query string parsing?

2012-04-11 Thread sam
Actually, /solr/mycore/myhandler/?qt=/updatestill uses my handler. Only /solr/mycore/select/?qt=/update uses update handler :P On Wed, Apr 11, 2012 at 11:41 AM, sam ” wrote: > Yah, RequestHandler is much better. Thanks! I don't know why I started > with QParse

Re: custom query string parsing?

2012-04-11 Thread sam
Yah, RequestHandler is much better. Thanks! I don't know why I started with QParserPlugin and SearchComponent. Even with my own RequestHandler that only passes down selected query params, people can still get around it through qt parameter: ?qt=/update&stream.update=*:*&commit=true I think I

Re: Securing Solr with Tomcat

2012-04-10 Thread sam
http://wiki.apache.org/solr/SolrSecurity Make sure you block query params such as qt= https://issues.apache.org/jira/browse/SOLR-3161 is still open. This could be useful, too: http://www.nodex.co.uk/blog/12-03-12/installing-solr-debian-squeeze On Tue, Apr 10, 2012 at 4:25 PM, solruser wrote:

Re: custom query string parsing?

2012-04-10 Thread sam
arams. And, I manually transform requestParams to proper SolrParams, and sum them up with defaultParams. On Tue, Apr 10, 2012 at 11:46 AM, sam ” wrote: > I would like to transform the following: > > /myhandler/?colors=red&colors=blue&materials=leather > > to a Query t

custom query string parsing?

2012-04-10 Thread sam
I would like to transform the following: /myhandler/?colors=red&colors=blue&materials=leather to a Query that is similar to: /select/?fq:colors:(red OR blue)&fq:materials:leather&facet=on&facet.field= and various default query params. I tried to do this by providing QParserPlugin:

document inside document?

2012-03-26 Thread sam
the query, +gucci +purse?? If itemId is primary key, I can use result grouping ( http://wiki.apache.org/solr/FieldCollapsing). But, I need to repeat alt text and other image metadata for each item. Or, should I create different schema for item search and metadata search? Thanks. Sam.

basic solr cloud questions

2011-09-27 Thread Sam Jiang
Hi all I'm a relatively new solr user, and recently I discovered the interesting solr cloud feature. I have some basic questions: (please excuse me if I get the terminologies wrong) - from my understanding, this is still a work in progress. How mature is it? Is there any estimate on the official

Re: jetty update

2011-04-13 Thread Sam Granieri
Is your current solr installation with Jetty 6 working well for you in a production environment? I dont know enough about Jetty to help you further on this question. On Wed, Apr 13, 2011 at 10:47 AM, stockii wrote: > is it necessary to update for solr ? > > - > ---

Re: jetty update

2011-04-13 Thread Sam Granieri
I found this link after googling for a few minutes. http://wiki.eclipse.org/Jetty/Howto/Upgrade_from_Jetty_6_to_Jetty_7 I hope that helps Also, a question like this may be more appropriate for a jetty mailing list. On Wed, Apr 13, 2011 at 8:44 AM, ramires wrote: > hi > >  how to update jetty 6 t

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-06-01 Thread Sam Michaels
Yonik, Done, here is the link. https://issues.apache.org/jira/browse/SOLR-1196 SM. Yonik Seeley-2 wrote: > > On Mon, Jun 1, 2009 at 10:50 AM, Sam Michaels wrote: >> >> So the fix for this problem would be >> >> 1. Stop using WordDelimiterFilter for queries (

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-06-01 Thread Sam Michaels
ength (after analysis). > Solr then interprets the left over "-features:foo" as "all documents > not containing foo in the features field", so you get a bunch of > matches. > > -Yonik > http://www.lucidimagination.com > > > On Mon, Jun 1, 2009

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-06-01 Thread Sam Michaels
t; wunder > > On 5/31/09 2:56 PM, "Sam Michaels" wrote: > >> >> Here is the output from the debug query when I'm trying to match the >> String @ >> against Bathing (should not match) >> >> >> 3.2689073 = (MATCH) weight(

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-31 Thread Sam Michaels
will let you see how analyzers > break text up into tokens. > > Not sure off hand, but I'm guessing the WordDelimiterFilterFactory has > something to do with it... > > > On Sat, May 30, 2009 at 5:59 PM, Sam Michaels wrote: >> >> Hi, >> >> I'm

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-31 Thread Sam Michaels
Upon some further experimentation, I found out that even @ matches all the documents. However when I append the wildcard * to @ (@*) then there is no match... SM Sam Michaels wrote: > > Hi, > > I'm running Solr 1.3/Java 1.6. > > When I run a query like - (activity

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-31 Thread Sam Michaels
this will let you see how analyzers >> break text up into tokens. >> >> Not sure off hand, but I'm guessing the WordDelimiterFilterFactory has >> something to do with it... >> >> >> On Sat, May 30, 2009 at 5:59 PM, Sam Michaels wrote:

When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-30 Thread Sam Michaels
Hi, I'm running Solr 1.3/Java 1.6. When I run a query like - (activity_type:NAME) AND title:(\...@#$%\^&\*\(\)) all the documents are returned even though there is not a single match. There is no title that matches the string (which has been escaped). My document structure is as follows N

Re: Null pointer exception on use of ImportDataHandler (useSolrAddSchema="true")

2009-03-20 Thread Sam Keen
thanks, I applied the patch in SOLR-1077 and this is now fixed for me (i updated the bug w/ a comment) sam keen 2009/3/19 Noble Paul നോബിള്‍ नोब्ळ् : > it is a bug , I have raised an issue > > https://issues.apache.org/jira/browse/SOLR-1077 > > On Fri, Mar 20, 2009 at 4:41 AM,

Re: Null pointer exception on use of ImportDataHandler (useSolrAddSchema="true")

2009-03-19 Thread Sam Keen
guess I spoke to soon. The above setup (with Shalin's fix) works for a mock run of 2 records. But when I try it with the production data of about 450 records, I get this error. again, any help is greatly appreciated sam keen Mar 19, 2009 3:59:

Re: Null pointer exception on use of ImportDataHandler (useSolrAddSchema="true")

2009-03-18 Thread Sam Keen
that worked perfectly Shalin. thanks so much for your help! sam keen On Wed, Mar 18, 2009 at 1:15 PM, Shalin Shekhar Mangar wrote: > On Thu, Mar 19, 2009 at 1:29 AM, Sam Keen wrote: > >> >> What I am now attempting to do is leverage 'useSolrAddSchema="true"

Null pointer exception on use of ImportDataHandler (useSolrAddSchema="true")

2009-03-18 Thread Sam Keen
fig.xml is correct (I couldn't find many examples that used useSolrAddSchema="true") but I've tried every alternate setting I could think of. Any help is very much appreciated (I'm sure I've just missed something simple) regards, sam using solr 1.3.0 on OSX 10.5.6 =