Re: [EXTERNAL] - Re: Solr not returning stored field

2019-07-01 Thread Ashwin Tandel
Pls unsubscribe me.

Thanks in Advance.

On Thu, Jun 27, 2019 at 2:30 PM Alexandre Rafalovitch
 wrote:
>
> Half the time I end up using a "power hammer" for all sorts of small
> "nails".
>
> Specifically I use Wiresharm network tracer to see exactly what happens on
> wire level and what servers are involved.
>
> A true overkill but it would have worked here...
>
> Regards,
> Alex
>
> On Thu, Jun 27, 2019, 3:09 PM Erick Erickson, 
> wrote:
>
> > Thanks for bringing closure, this was really puzzling. Don’t want to
> > mention how many times I’ve spent hours/days trying to understand something
> > only to finally figure out something similar ;).
> >
> > Best,
> > Erick
> >
> > > On Jun 27, 2019, at 11:53 AM, Steve Pruitt  wrote:
> > >
> > > Ok.  When something makes no sense.  Go back to the very beginning.  I
> > was using an out of date configuration file which pointed SolrJ to another
> > running Solr that had a core similar enough to the one running on localhost
> > that I could not see an issue... until I checked everything.
> > >
> > > All is good.
> > >
> > > -S
> > >
> > > -Original Message-
> > > From: Steve Pruitt 
> > > Sent: Thursday, June 27, 2019 2:46 PM
> > > To: solr-user@lucene.apache.org
> > > Subject: RE: [EXTERNAL] - Re: Solr not returning stored field
> > >
> > > Ok, I am totally confused.
> > >
> > > It works fine using Solr Admin console on some test cases.  I set the fl
> > box with ranking reference and I get back both fields.
> > >
> > > For completeness, I clicked the url constructed for the query and it
> > works fine too.
> > > Example:
> > http://localhost:8983/solr/suggestion/select?fl=ranking%20reference&q=user:10456
> > >
> > > Here is the confusing part.
> > > I stepped through my code, as I looped through the returned documents I
> > copied the user value from the response and pasted user:value into the
> > Admin console and get no results.  Yet, in my code using SolrQuery I see a
> > response for the same user:value with the ranking field.
> > >
> > > This makes no sense to me.  The Admin console is usually the source of
> > truth.  Why would I get no response from the console, but see a response
> > using SolrJ?
> > >
> > >
> > > -Original Message-
> > > From: Alexandre Rafalovitch 
> > > Sent: Thursday, June 27, 2019 1:44 PM
> > > To: solr-user 
> > > Subject: [EXTERNAL] - Re: Solr not returning stored field
> > >
> > > (If no other SolrJ specific advice shows up)
> > >
> > > Can you divide the problem in a middle a see what happens and whether
> > the issue is Solr or SolrJ side.
> > >
> > > Specifically, execute the query directly against Solr and see what
> > happens.
> > >
> > > Also I would triple-check that the documents you are getting back
> > actually have the field. Sometimes not all documents do and the query
> > returns those wirhout first. Cross check by getting returned IDs and
> > looking up the full record directly in Solr.
> > >
> > > Regards,
> > >Alex
> > >
> > > On Thu, Jun 27, 2019, 1:37 PM Steve Pruitt, 
> > wrote:
> > >
> > >> I cannot get Solr to return a stored field.
> > >>
> > >> My schema is:
> > >>
> > >> :
> > >>   > >> name="ranking" type="pdouble" indexed="false" stored="true"/>  > >> name="reference" type="string" indexed="false" stored="true"/>
> > >> :
> > >>
> > >> I am using the SolrJ client and trying this:
> > >>
> > >> The query string contains = " user: " and a list of user field values;
> > >> The query executes ok.  I get several documents.
> > >>
> > >> SolrQuery solrQuery = new SolrQuery(query);
> > >> solrQuery.setSort("ranking" , SolrQuery.ORDER.desc);
> > >> solrQuery.addField("ranking"); solrQuery.addField("reference");
> > >>
> > >> I also tried:
> > >>
> > >> solrQuery.setFields("ranking", " reference");
> > >>
> > >> But the result has only the "ranking" field.
> > >> Before explicitly setting the fields.  All fields came back in
> > >> response except "reference".
> > >>
> >
> >


Re: Solr 7.5 - Indexing Failing due to "IndexWriter is Closed"

2019-04-01 Thread Ashwin Tandel
Please un-subscribe me.

Thanks in Advance,
Ashwin

On Mon, Apr 1, 2019 at 5:54 PM Aroop Ganguly  wrote:
>
> Hi Group
>
> I am facing this issue again.The stack mentions Heap space issue.
>
> Are the document sizes too big ?
>
> Not sure what I should be doing here; As on the solr admin ui I do not see 
> jvm being anywhere close to being full.
> Any advise on this is greatly welcome.
>
>
> Full Stack trace:
>
> 2019-04-01 22:13:54.833 ERROR (qtp484199463-773)
>  o.a.s.s.HttpSolrCall null:org.apache.solr.common.SolrException: Server error 
> writing document id C9C280C4-B3B7-4BEE-9EA5-C4925F5092D9 to the index
> at 
> org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:240)
> at 
> org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)
> at 
> org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:55)
> at 
> org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:970)
> at 
> org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:1186)
> at 
> org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:653)
> at 
> org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103)
> at 
> org.apache.solr.handler.loader.JavabinLoader$1.update(JavabinLoader.java:98)
> at 
> org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$1.readOuterMostDocIterator(JavaBinUpdateRequestCodec.java:188)
> at 
> org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$1.readIterator(JavaBinUpdateRequestCodec.java:144)
> at 
> org.apache.solr.common.util.JavaBinCodec.readObject(JavaBinCodec.java:311)
> at 
> org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:256)
> at 
> org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$1.readNamedList(JavaBinUpdateRequestCodec.java:130)
> at 
> org.apache.solr.common.util.JavaBinCodec.readObject(JavaBinCodec.java:276)
> at 
> org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:256)
> at 
> org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:178)
> at 
> org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal(JavaBinUpdateRequestCodec.java:195)
> at 
> org.apache.solr.handler.loader.JavabinLoader.parseAndLoadDocs(JavabinLoader.java:109)
> at 
> org.apache.solr.handler.loader.JavabinLoader.load(JavabinLoader.java:55)
> at 
> org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:97)
> at 
> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:68)
> at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:2541)
> at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:709)
> at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:515)
> at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:377)
> at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:323)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
> at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
> at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
> at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
> at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
> at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
> at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
> at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandle

Gracefully stopping jetty server - LockObtainFailedException

2013-10-07 Thread Ashwin Tandel
Hi,

I have solr cloud(4.1) setup  with embedded jetty server.

I use the below command to start and stop the server.

start server : nohup java -DSTOP.PORT=8085 -DSTOP.KEY= -DnumShards=2
 -Dbootstrap_confdir=./solr/nlp/conf -Dcollection.configName=myconf
-DzkHost=10.88.139.206:2181,10.88.139.206:2182,10.88.139.206:2183 -jar
start.jar > output.log 2>&1 &

Stop Server :  java -DSTOP.PORT=8085 -DSTOP.KEY=  -jar start.jar --stop

What I have observed is once I stop the server and start again, while
indexing it gives me 'org.apache.lucene.store.LockObtainFailedException:
Lock obtain timed out:' with the 'NativeFSLock@solr
/nlp/data/index.20130924205253479/write.lock'

after I delete lock file manually and start the server, indexing works fine.

Please let me know how we can resolve this. If this issue is answered
earlier, I would appreciate pointing me to the url, tried finding it but
could not.



Thanks in Advance,
Ashwin


Re: [JOB] Solr / Elasticsearch Engineer @ Sematext

2013-09-30 Thread Ashwin Tandel
Hi,

I would like to apply for SEARCH CONSULTING & SEARCH SOLUTIONS ARCHITECT
position.

PFA my resume. You can reach me at 2019934403.

Thanks,
Ashwin
cell - 2019934403


On Mon, Sep 30, 2013 at 4:17 PM, Otis Gospodnetic <
otis.gospodne...@gmail.com> wrote:

> Hello,
>
> If you are looking to work with Solr and Elasticsearch, among other
> things, this may be for you:
>
> http://blog.sematext.com/2013/09/26/solr-elasticsearch-job-engineering/
>
> This role offers a healthy mix of Solr/ES consulting, support, and
> product development.
>
> Everything that might be of interest should be there, but I'll be
> happy to answer any questions anyone may have off-list.
>
> Otis
> --
> Solr & ElasticSearch Support -- http://sematext.com/
> Performance Monitoring -- http://sematext.com/spm
>


AshwinTandel.docx
Description: application/vnd.openxmlformats-officedocument.wordprocessingml.document


(e)dismax Query Generation

2013-06-24 Thread Ashwin Tandel
Hi,

Does Solr provides any java API/Client library to generate (e)dismax Query.

for eg. using Java Code/API I wish to generate query like
'q=video&defType=edismax&qf=features^20.0+text^0.3&bq=cat:electronics^5.0'

Thanks in Advance,
Ashwin


Creating solr query.

2013-06-24 Thread Ashwin Tandel
Hi,

It's with regards to generating a query string for Solr.
I am looking for a solution where I can create the query string like

'q=name:ipod AND cat=music AND features=cool&facet=on&facet.field=cat'

Is there any library through which we can create this query string.

I came across Solrj but looks like it is not as reach as lucene API.

Is there a way we can use lucene API and generate the query string or is
there any other way.

Thanks in Advance,

Ashwin


Re: Questions on SOLR

2013-06-24 Thread Ashwin Tandel
Thanks Gora.


On Mon, Jun 24, 2013 at 1:28 PM, Gora Mohanty  wrote:

> On 24 June 2013 23:14, Ashwin Tandel  wrote:
> > Hi,
> >
> > It's with regards to generating a query string for Solr.
> > I am looking for a solution where I can create the query string like
> >
> > 'q=name:ipod AND cat=music AND features=cool&facet=on&facet.field=cat'
> >
> > I understand, we may not be able to use lucene query API directly . Is
> > there any other library through which we can create this query string.
> >
> > I came across Solrj but looks like it is not as reach as lucene API.
> >
> > Is there a way we can use lucene API and generate the query string.
> [...]
>
> Please do not hijack a thread, but start your own for a new
> question, even if related to the subject at hand.
>
> Here is why thread hijacking is bad:
> http://people.apache.org/~hossman/#threadhijack
>
> Regards,
> Gora
>


Re: Questions on SOLR

2013-06-24 Thread Ashwin Tandel
Hi,

It's with regards to generating a query string for Solr.
I am looking for a solution where I can create the query string like

'q=name:ipod AND cat=music AND features=cool&facet=on&facet.field=cat'

I understand, we may not be able to use lucene query API directly . Is
there any other library through which we can create this query string.

I came across Solrj but looks like it is not as reach as lucene API.

Is there a way we can use lucene API and generate the query string.

Thanks in Advance,

Ashwin


On Mon, Jun 24, 2013 at 7:56 AM, Erik Hatcher wrote:

> Inline below...
>
> On Jun 24, 2013, at 07:16 , heikki wrote:
>
> > hello,
> >
> > I'm a long-time user of Lucene, and have some questions about SOLR.
> >
> > 1. Is it possible to give actual Lucene queries to SOLR, bypassing any
> > SOLR-side QueryParsing ?
>
> No, not directly as Query objects, but Solr's default query parser is
> lucene syntax based, so any Lucene QueryParser syntax query can be used in
> Solr.
>
> Since you've got Lucene API know-how, you could create a custom
> QParser(Plugin) easily if you have a different syntax/format that you'd
> like to use.
>
> > 2. Are there differences in functionality or implementation between
> Faceted
> > Search in Lucene and SOLR ?
>
> They are two entirely different codebases, no overlap whatsoever.  I'm
> sure the basic results are comparable, but I don't have experience with the
> Lucene faceting module so I can't say what's different.
>
> > 3. Is it possible to use several indices (for different languages), and
> > sometimes search only in one of them, sometimes (if user requested)
> search
> > in all of them having combined results (and relevancy calculated as if
> it is
> > a single index) ?
>
> Yes.  You can create multiple Solr "cores" and query them individually or
> as if they were one distributed collection (provided the schemas are
> compatible).  Regarding relevancy though, there still is an open issue to
> implement distributed IDF, so it's not exactly as if it was a single index.
>  With different languages, you'll be using different fields anyway though,
> so maybe the distributed IDF isn't an issue for you.
>
> But you could index all the documents, possibly, into the same index and
> have a field that distinguishes the language and filter (or not) to query
> in any combination.
>
> Erik
>
>