Re: How different is solr 4.7 from latest version.

2018-01-13 Thread srini sampath
Thanks Joe and Shawn.
This is very useful information.
@Joe, I need to upgrade and use synonym support of support. So I think I
should better start with latest version.

.Best,
Srini Sampath.

.Best,
Srini Sampath

On Fri, Jan 12, 2018 at 8:42 PM, Joe Heasly <jhea...@llbean.com> wrote:

> Srini,
>
> We upgraded from Solr 4.6 to 6.4 last summer.  There are fundamental
> differences between those versions in the way the default Boolean operator
> and 'minimum should match' functions interact.  Here's an excellent
> discussion of the change here (Jason Hellman does it more justice than I
> could hope to):
>
> http://blog.innoventsolutions.com/innovent-solutions-blog/
> 2017/02/solr-edismax-boolean-query.html
>
> If you're just starting out and you're starting with a recent version,
> this won't matter.  But if you're upgrading, it's critical to be aware.
>
> Regards,
> Joe
>
> { Joe Heasly | L.L.Bean, Inc. | [O] 207 552-2254 [M] 207 756-9250 }
>
> -Original Message-
> From: Shawn Heisey [mailto:apa...@elyograg.org]
> Sent: Friday, January 12, 2018 10:02 AM
> To: solr-user@lucene.apache.org
> Subject: Re: How different is solr 4.7 from latest version.
>
> On 1/12/2018 5:58 AM, srini sampath wrote:
> > I am reading a book (Solr in action
> > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amazon.in_So
> > lr-2DAction-2DTrey-2DGrainger_dp_1617291021=DwICaQ=uC6H3HqR7J0hkle
> > XqZF0oA=LGfOV9gkzZFmyXgI5jYqo5FeO_fORxZZyF8winHfJ8s=xoJLS_ZP0u4l7P
> > AGZslEYaLCEBqnoJfoXeneaibCb-8=rPpw1EkXBvtuGGJXE7VSTHcgViWw_6X0Au7zZW
> > Af4iw=>) to understand how to work with different features in solr. It
> uses solr 4.7 to explain features. But I don't find any better material
> (IMHO, documentation has many looped references which makes it too
> difficult to understand for a newbie).
> >
> > Does it cover all the features related to new version (like important
> > features) or is it better to follow some other resource?
>
> The latest version is 7.2, and the 7.2.1 release is being finalized now.
>
> That's three major versions newer.  Most of the info in that book will
> still be relevant, but there is quite a bit of new functionality.
>
> Here's the reference guide that is published as official documentation.
> You can download this as a PDF using the "Other Formats" link at the top
> of the page:
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene.
> apache.org_solr_guide_7-5F2_=DwICaQ=uC6H3HqR7J0hkleXqZF0oA=
> LGfOV9gkzZFmyXgI5jYqo5FeO_fORxZZyF8winHfJ8s=xoJLS_
> ZP0u4l7PAGZslEYaLCEBqnoJfoXeneaibCb-8=ISiRaa2CCBrg1Y3ElGGY8_
> I0fCvSGGKiJGjU8TcsAas=
>
> Full disclosure: There isn't very much available for extreme beginners.
> This lack is something the project is aware of, but writing documentation
> for the uninitiated is a difficult task.  The reference guide isn't awful,
> but it could be a lot better.
>
> For differences between versions, there is the CHANGES.txt file included
> in every download.  The reference guide also has a section about big
> differences from the previous major version.
>
> Thanks,
> Shawn
>


How different is solr 4.7 from latest version.

2018-01-12 Thread srini sampath
Hi,

I am reading a book (Solr in action
<https://www.amazon.in/Solr-Action-Trey-Grainger/dp/1617291021>) to
understand how to work with different features in solr. It uses solr 4.7 to
explain features. But I don't find any better material (IMHO, documentation
has many looped references which makes it too difficult to understand for a
newbie).

Does it cover all the features related to new version (like important
features) or is it better to follow some other resource?

.Best,
Srini Sampath.


Re: How to build solr

2017-09-29 Thread srini sampath
Thanks Atita, Sidana and Erick.

@Atita, tried the procedure suggested here
<http://www.gingercart.com/Home/search-and-crawl/build-and-run-solr-from-source>
.
But don't see any war file in the
/extract_location/solr-6.6.1/solr/xxxsolr--SNAPSHOT.war
directory after step #7

@Sidana, tried the procedure suggested here.
<http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/>
with small changes.
But did not work.
1) Built eclipse target using $ant eclipse
2) Imported the solr eclipse project
3) Refresh project in eclipse
4) Built solr server $ant server
5) Started the server and listening on 7666 port

​
​
6) Started solr in debug mode

​
​
7) I see the following message in my cmd prompt. Any Idea?

​

​

@Atita, Sidana. Could it be due to changes in version(might be missing many
changes) from 4.x.x to 6.6.1. Please correct me if I am wrong.

@Erick,
1> do you have ant installed? My guess is yes but thought I'd check
 #1.Yes, Ant is installed
2> what target are you executing? "ant server"? "ant dist"? ???
#2. I followed 2 different blogs and executing different targets on
different src-code bundles.
--> built ant dist
<http://www.gingercart.com/Home/search-and-crawl/build-and-run-solr-from-source>
--> built ant server
<http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/>
3> the first time you execute an ant task you should see a message
about a target to install "ivy", did you see it and did you follow it?
#3. Earlier I did not include the ivy file in ant/lib directory. Now It
is resolved.

---

As I mentioned in my previous mail, I am working on *solrTextTagger feature
<https://github.com/OpenSextant/SolrTextTagger/issues/67>*.
And I want to know, How Can I debug my changes. I found similar problem here
<http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>.

How to pass the search request to different RequestHandler from within the
custom RequestHandler and how to debug the custom RequestHandler plugin ?
@Erick, tried the process mentioned by you on that thread. It did not work
for me and could not understand where was it going wrong.
Defined my custom handler in solrschema.xml



Defined my custom handler jar file location location
  
(solr-text-tagger.jar location)

I made some changes to the solrTextTagger, And built a jar using maven. and
enabled the Xdebug
[image: Inline image 1]
I am running solr as a service. And sending a request using HTTP Post
method. It is working fine.

But the problem is how can I debug solr-text-tagger.jar code to check and
make changes. (How to do remote debugging?). It says no main manifest
attribute. I would be glad if I can get solution specific to this issue.

.Best,
Srini Sampath

On Fri, Sep 22, 2017 at 9:55 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> 1> do you have ant installed? My guess is yes but thought I'd check
> 2> what target are you executing? "ant server"? "ant dist"? ???
> 3> the first time you execute an ant task you should see a message
> about a target to install "ivy", did you see it and did you follow it?
> That should install ivy-2.4.0.jar (or similar) in ./ant/lib
>
> Best,
> Erick
>
> On Fri, Sep 22, 2017 at 3:11 AM, Sidana, Mohit
> <mohit.sid...@wolterskluwer.com> wrote:
> > Here's a very nice article on " How to Debug Solr With Eclipse" which I
> have used previously to debug solr with eclipse.
> >
> > http://opensourceconnections.com/blog/2013/04/13/how-to-
> debug-solr-with-eclipse/
> >
> >
> > -Original Message-
> > From: Atita Arora [mailto:atitaar...@gmail.com]
> > Sent: Friday, September 22, 2017 10:07 AM
> > To: solr-user@lucene.apache.org
> > Subject: Re: How to build solr
> >
> > http://www.gingercart.com/Home/search-and-crawl/build-
> and-run-solr-from-source
> >
> > and  follow thread
> >
> > http://lucene.472066.n3.nabble.com/running-solr-in-
> debug-through-eclipse-td4159777.html
> >
> > to run solr server in debug mode through eclipse.
> >
> > Should give you some hint.
> >
> > Let me go through your error again to see , if I get some clue there.
> >
> > -Atita
> >
> > On Fri, Sep 22, 2017 at 11:41 AM, srini sampath <
> sampathsrini.c...@gmail.com
> >> wrote:
> >
> >> Thanks Aman,
> >> Erick, I followed the link and I am getting the following error,
> >>
> >> B

Re: How to build solr

2017-09-22 Thread srini sampath
PS: I have Installed both Ant and Ivy in my system. But there is no
${user.home}\.ant\lib
folder

On Fri, Sep 22, 2017 at 11:41 AM, srini sampath <sampathsrini.c...@gmail.com
> wrote:

> Thanks Aman,
> Erick, I followed the link and I am getting the following error,
>
> Buildfile: ${user.home}\git\lucene-solr\build.xml
>
> compile:
>
> -check-git-state:
>
> -git-cleanroot:
>
> -copy-git-state:
>
> git-autoclean:
>
> resolve:
>
> ivy-availability-check:
>
> BUILD FAILED
> ${user.home}\git\lucene-solr\build.xml:309: The following error occurred
> while executing this line:
> ${user.home}\git\lucene-solr\lucene\build.xml:124: The following error
> occurred while executing this line:
> ${user.home}\git\lucene-solr\lucene\common-build.xml:424:
> ${user.home}\.ant\lib does not exist.
>
> Total time: 0 seconds
>
> Any Idea?
> How can I run solr server In debug mode.
>
> Here is the thing I am trying to do,
> Change a custom plugin called solrTextTagger
> <https://github.com/OpenSextant/SolrTextTagger>and add some extra query
> parameters to it.
>
> I defined my custom handler in the following way
>
>- 
>
>
>
>- And I defined my custom handler jar file location location in
>solrschema.xml in the following way
>
>
> (solr-text-tagger.jar
> location)
>
>- I made some changes to the solrTextTagger,
><https://github.com/OpenSextant/SolrTextTagger> And built a jar using
>maven.
>- I am running solr as a service. And sending a request using HTTP
>Post method.
>- But the problem is how can I debug solr-text-tagger.jar code to
>check and make changes. (I mean how to do remote debugging?)
>
>
> I am using eclipse IDE for development.
> I found similar problem here
> <http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>.
> But I could not understand the solution.
>
> .Best,
> Srini Sampth.
>
>
>
>
>
> On Thu, Sep 21, 2017 at 8:51 PM, Erick Erickson <erickerick...@gmail.com>
> wrote:
>
>> And did you follow the link provided on that page?
>>
>> Best,
>> Erick
>>
>> On Thu, Sep 21, 2017 at 3:07 AM, Aman Tandon <amantandon...@gmail.com>
>> wrote:
>> > Hi Srini,
>> >
>> > Kindly refer to the READ.ME section of this link of GitHub, this should
>> > work.
>> > https://github.com/apache/lucene-solr/blob/master/README.md
>> >
>> > With regards,
>> > Aman Tandon
>> >
>> >
>> > On Sep 21, 2017 1:53 PM, "srini sampath" <sampathsrini.c...@gmail.com>
>> > wrote:
>> >
>> >> Hi,
>> >> How to build and compile solr in my locale machine? it seems the
>> >> https://wiki.apache.org/solr/HowToCompileSolr page became obsolete.
>> >> Thanks in advance
>> >>
>>
>
>


Re: How to build solr

2017-09-22 Thread srini sampath
Thanks Aman,
Erick, I followed the link and I am getting the following error,

Buildfile: ${user.home}\git\lucene-solr\build.xml

compile:

-check-git-state:

-git-cleanroot:

-copy-git-state:

git-autoclean:

resolve:

ivy-availability-check:

BUILD FAILED
${user.home}\git\lucene-solr\build.xml:309: The following error occurred
while executing this line:
${user.home}\git\lucene-solr\lucene\build.xml:124: The following error
occurred while executing this line:
${user.home}\git\lucene-solr\lucene\common-build.xml:424:
${user.home}\.ant\lib does not exist.

Total time: 0 seconds

Any Idea?
How can I run solr server In debug mode.

Here is the thing I am trying to do,
Change a custom plugin called solrTextTagger
<https://github.com/OpenSextant/SolrTextTagger>and add some extra query
parameters to it.

I defined my custom handler in the following way

   - 

   

   - And I defined my custom handler jar file location location in
   solrschema.xml in the following way

  
(solr-text-tagger.jar
location)

   - I made some changes to the solrTextTagger,
   <https://github.com/OpenSextant/SolrTextTagger> And built a jar using
   maven.
   - I am running solr as a service. And sending a request using HTTP Post
   method.
   - But the problem is how can I debug solr-text-tagger.jar code to check
   and make changes. (I mean how to do remote debugging?)


I am using eclipse IDE for development.
I found similar problem here
<http://lucene.472066.n3.nabble.com/Custom-processing-in-Solr-Request-Handler-plugin-and-its-debugging-td4077533.html>.
But I could not understand the solution.

.Best,
Srini Sampth.





On Thu, Sep 21, 2017 at 8:51 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> And did you follow the link provided on that page?
>
> Best,
> Erick
>
> On Thu, Sep 21, 2017 at 3:07 AM, Aman Tandon <amantandon...@gmail.com>
> wrote:
> > Hi Srini,
> >
> > Kindly refer to the READ.ME section of this link of GitHub, this should
> > work.
> > https://github.com/apache/lucene-solr/blob/master/README.md
> >
> > With regards,
> > Aman Tandon
> >
> >
> > On Sep 21, 2017 1:53 PM, "srini sampath" <sampathsrini.c...@gmail.com>
> > wrote:
> >
> >> Hi,
> >> How to build and compile solr in my locale machine? it seems the
> >> https://wiki.apache.org/solr/HowToCompileSolr page became obsolete.
> >> Thanks in advance
> >>
>


How to build solr

2017-09-21 Thread srini sampath
Hi,
How to build and compile solr in my locale machine? it seems the
https://wiki.apache.org/solr/HowToCompileSolr page became obsolete.
Thanks in advance