SolrJ SolrInputDocument#addField doesn't throw an exception

2018-04-02 Thread Leonardo Perez Pulido
Hi all,
It would be nice if org.apache.solr.common.SolrInputDocument#addField throw
an exception when field name is 'id' and the method detect that the indexed
id is not unique, just like the post.jar tool.
I was confident that both had the same behavior, so...
Thanks.


Re: SolrJ Java API examples

2017-09-14 Thread Leonardo Perez Pulido
Hi,
This may help:

https://github.com/leoperezpulido/lucene-solr/tree/master/solr/solrj/src/test/org/apache/solr/client/solrj

Regards.

On Thu, Sep 14, 2017 at 4:21 AM, Vishal Srivastava  wrote:

> Hi,
> I'm a beginner at SolrJ , and am currently looking to implement and
> integrate the same at my current organisation using Java .
>
> After a lot of research, I failed to find any good material / examples for
> SolrJ 's Java library that I could use as reference.
>
> Please suggest some good material.
>
> Thanks a ton.
>
> Vishal Srivastava.
>


Re: "What is Solr" in Google search results

2017-08-30 Thread Leonardo Perez Pulido
Hi,

I think there are many things to consider besides the 'normal' search you
did:

- First of all, Google search results vary. The search algorithm of google
changes all the time.
- Many different elements determine 'what' google scores as top docs in
search results, among them:
- The device you are searching on.
- Your search history.
- If you are logged into the google account.
- Your geographical location.
- The type of search you are doing, whether it is a term/keyword or a
phrase search.
- And if it is summer, or winter (joking I don't know nobody knows with
google).

For example, the same search phrase from my location returns a very
different result as top doc:

Apache *Solr* is an open source search platform built upon a Java library
called Lucene.

Which really is a definition of what Solr is.

So, in conclusion, if you want a better search engine than that: use Solr.
:)

On Wed, Aug 30, 2017 at 7:17 PM, Vincenzo D'Amore 
wrote:

> Hi All,
>
> googling for "what is Solr" I found this as *first* sentence:
>
> "Solr is the second-most popular enterprise search engine after
> Elasticsearch. ... "
>
> The description comes from wikipedia https://en.
> wikipedia.org/wiki/Apache_Solr
>
> Now, well, I'm a little upset, because I think this is a misleading
> description, this answer does not really... well, answer the question.
>
> And even... because Solr is not the first most popular :)))
>
> Ok, seriously, the first sentence (or the answer at all) should not define
> the position of the search engine in a list, in a kind of competition where
> Solr has the second place.
> If it is the first, the second or whatever most popular is not the right
> answer.
>
> So I want inform the community and search for an advice, if any, how to
> have a better description in the Google results page.
>
> If you have any comments or questions, please let me know.
>
> Best regards,
> Vincenzo
>
>
> --
> Vincenzo D'Amore
> email: v.dam...@gmail.com
> skype: free.dev
> mobile: +39 349 8513251 <349%20851%203251>
>


Re: Solr client

2017-08-30 Thread Leonardo Perez Pulido
Hi,
Apart from take a look at the Solr's wiki, I think one of the main reasons
why these API's are all out dated is that Solr itself provides the 'API' to
many different languages in the form of output formats.

Maybe you know that the main protocol used in Solr for communication with
its clients is HTTP. Many (if not all) of today's programming languages
provides a mean to send request to Solr via HTTP. And Solr 'responses' to
every one of those languages via different available response formats.

By default there are response formats for: JavaScript, Python, Ruby, and
SolrJ (Java). All that response formats are first-class citizens in Solr.

Have a look:
http://wiki.apache.org/solr/IntegratingSolr
https://lucene.apache.org/solr/guide/6_6/client-apis.html

Regards.

On Wed, Aug 30, 2017 at 1:59 PM, Alexandre Rafalovitch 
wrote:

> We do have a page on the Wiki with a lot of that information.
>
> Did you see it?
>
> Regards,
> Alex
>
>
> On 29 Aug. 2017 2:28 am, "Aditya"  wrote:
>
> Hi
>
> I am aggregating open source solr client libraries across all languages.
> Below are the links. Very few projects are currently active. Most of them
> are last updated few years back. Please provide me pointers, if i missed
> any solr client library.
>
> http://www.findbestopensource.com/tagged/solr-client
> http://www.findbestopensource.com/tagged/solr-gui
>
>
> Regards
> Ganesh
>
> PS: The website http://www.findbestopensource.com search is powered by
> Solr.
>


Re: Recommended Python Library for Complex Querying?

2017-08-30 Thread Leonardo Perez Pulido
Hi,
Maybe this can help:
http://lucene.apache.org/pylucene/
Regards.


On Wed, Aug 30, 2017 at 2:44 AM, ron visbord  wrote:

> Hi all,
>
> I'm rebuilding the Solr part of my search engine in Python.
>
> I work with both Solr 5[.2.1] and 6[.3.0].
>
> I looked around but found no satisfactory python library to help me write
> queries. I come from SolrJ so I'm used to having classes for all types or
> queries.
>
> What would you say is the most "powerful" and up-to-date python library for
> Solr?
>
> Or will I be forced to hand-craft the lucene syntax?
>
> Thanks in advanced,
> Ron
>


Re: Process to fix typos in ref-guide

2017-08-28 Thread Leonardo Perez Pulido
Hi,
I think the PR is the easiest and better. They are only typos in the
ref-guide.
Thanks!

On Mon, Aug 28, 2017 at 4:45 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> If you're a committer yes. If not, I guess you'd have to create a
> patch or a PR and ask a committer pick it up.
>
> And probably not only master but 7x as well.
>
> Erick
>
> On Mon, Aug 28, 2017 at 1:32 PM, Leonardo Perez Pulido
> <leoperezpul...@gmail.com> wrote:
> > Hi,
> > How is the process to help fix typos in Solr's ref. guide? Can I merge it
> > directly to master?
> > @Cassandra.
> > Thanks.
>


Process to fix typos in ref-guide

2017-08-28 Thread Leonardo Perez Pulido
Hi,
How is the process to help fix typos in Solr's ref. guide? Can I merge it
directly to master?
@Cassandra.
Thanks.


Re: Error when using IndexMergeTool

2017-08-25 Thread Leonardo Perez Pulido
Hi,
Isn't the Windows classpath separator a semi-colon? Like this:
cene-core-6.5.1.jar"*;*"C:solr/serve
Just saying.
Regards.

On Fri, Aug 25, 2017 at 8:33 PM, Zheng Lin Edwin Yeo 
wrote:

> Hi Erick,
>
> Thanks for your reply.
> I have check, it was not due to the typo. The same error occurs even with
> the slash.
>
> Regards,
> Edwin
>
> On 26 August 2017 at 05:16, Erick Erickson 
> wrote:
>
> > You classpath is not correct. Unless it's a typo,
> > :"C:solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-6.5.1.jar"
> > is wrong, it should be:
> > "C:/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-6.5.1.jar",
> > note the slash before "solr".
> >
> > If that's not just a typo you need to look further as to why the
> > classpath isn't being specified correctly.
> >
> > Best,
> > Erick
> >
> > On Thu, Aug 24, 2017 at 7:52 PM, Zheng Lin Edwin Yeo
> >  wrote:
> > > Hi,
> > >
> > > I am trying to use the IndexMergeTool to merge two indexes that are
> > indexed
> > > in different collections into one. Both collections have the same
> fields,
> > > and are using Parent-Child Block-Join.
> > >
> > > When I tried to run the following command as stated from the Solr Wiki
> > > https://cwiki.apache.org/confluence/display/solr/Merging+Indexes
> > >
> > > java -cp
> > > "C:/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-
> > core-6.5.1.jar":"C:solr/server/solr-webapp/webapp/WEB-
> > INF/lib/lucene-misc-6.5.1.jar"
> > > org/apache/lucene/misc/IndexMergeTool
> > > C:/solr/collectionMerge_shard1_replica1/data/index
> > > C:/solr/collection1_shard1_replica1/data/index
> > > C:/solr/collection2_shard1_replica1/data/index
> > >
> > > I get the following error:
> > > Error: Could not find or load main class
> > > org.apache.lucene.misc.IndexMergeTool
> > >
> > > What could be causing the error?
> > >
> > > This is done on Solr 6.5.1
> > >
> > > Regards,
> > > Edwin
> >
>


Re: FastVector does not highlight for phrase query when it contains stop word/s

2017-08-21 Thread Leonardo Perez Pulido
Hi,
Do you analyze your text with StopFilterFactory, in your field type?
Regards.

On Mon, Aug 21, 2017 at 11:47 AM, Jagdish Vasani <
jagdish.vas...@thedigitalgroup.com> wrote:

> Hi  Solr Users,
>
> I come across issue that fast Vector highlighter does not highlight field
> values when search for phrase query contains stop word.
> For example , Query is "blue is the sky" , it will return result but
> highlighting will not available for this field.
>
> I have applied,
> hl.usePhraseHighlighter=true
> hl.preserveMulti=true
> hl.highlightMultiTerm=true
> hl.fragsize=1500
> hl.snippets=5
> hl=on
> hl.fl=
> hl.tag.pre=
> hl.tag.post==
> hl.method = fastVector
>
> schema.xml, fields having
> indexed="true" termOffsets="true" stored="true" termPositions="true"
> termVectors="true" multiValued="true"
>
> I have used solr 6.4.2
>
> Does that correct or I am missing some thing ?
>
> Thanks,
> Jagdish
>
>
> 
>
> NOTICE TO RECIPIENT(s):This e-mail message may contain confidential or
> legally privileged information and is intended only for the use of the
> intended recipient(s). Any unauthorized disclosure, dissemination,
> distribution, copying or the taking of any action in reliance on the
> information herein is prohibited. E-mails are not secure and cannot be
> guaranteed to be error free as they can be intercepted, amended, or contain
> viruses. Although The Digital Group has taken reasonable precautions to
> ensure no viruses are present in this email, the company cannot accept
> responsibility for any loss or damage arising from the use of this email or
> attachments. Any opinion defamatory or deemed to be defamatory or any
> material which could be reasonably branded to be a species of plagiarism
> and other statements contained in this message and any attachment are
> solely those of the author and do not necessarily represent those of the
> company.
>


Re: MongoDb vs Solr

2017-08-12 Thread Leonardo Perez Pulido
The main reason to chose Solr is the capacity of it has of return results
sorted by relevance. Solr returns documents in ranked order based on how
relevant each document is to the user's query.
Solr isn't a database, although it can 'store' data.
Regards.

On Sat, Aug 12, 2017 at 2:27 PM, Dave  wrote:

> Personally I say use a rdbms for data storage, it's what it's for. Solr is
> for search and retrieve and the expense of possible loss of all data, in
> which case you rebuild it.
>
> > On Aug 12, 2017, at 11:26 AM, Muwonge Ronald  wrote:
> >
> > Hi Solr can use mongodb for storage and you can play with the data as it
> > grows depending on your data goals.Ease of learning doesn't mean
> > happiness.I recommend you use both for serious projects that won't
> collapse
> > soon.
> > Ronny
> >> On 5 Aug 2017 02:16, "Francesco Viscomi"  wrote:
> >>
> >> Hi all,
> >> why i have to choose solr if mongoDb is easier to learn and to use?
> >> Both are NoSql database, is there a good reason to chose solr and not
> >> mongoDb?
> >>
> >> thanks really much
> >>
> >> --
> >> Ing. Viscomi Francesco
> >>
>