Solr and Nutch integration

2016-02-16 Thread Tom Running
I am having problem configuring Solr to read Nutch data or Integrate with
Nutch.
Does  anyone able to get SOLR 5.4.x to work with Nutch?

I went through lot of google's article any still not able to get SOLR 5.4.1
to searching Nutch contents.

Any howto or working configuration sample that you can share will be
greatly appreciate it.

Thanks,
Toom


Display entire string containing query string

2016-02-17 Thread Tom Running
Hello,

I am working on a project using Solr to search data from retrieved from
Nutch.

I have successfully integrated Nutch with Solr, and Solr is able to search
Nutch's data.

However I am having a bit of a problem. If I query Solr, it will bring back
the numfound and which document the query string was found in, but it will
not display the string that contains the query string.

Can anyone help on how to display the entire string that contains the query.


I appreciate your time and guidance. Thank you so much!

-T


Re: Display entire string containing query string

2016-02-18 Thread Tom Running
Hello
Thank you for your reply.
I am wondering if you can clarify a bit more for me. Is
field_where_string_may_be_present something that I have to specify? I am
searching HTML page.
For example if I search for the word "name" I am trying to display the
entire sentence containing  "name = T" or maybe "name: T". Ultimately by
searching for the string "name" I am trying to find the value of name.

Thanks for your time. I appreciate your help
-T
On Feb 18, 2016 1:18 AM, "Binoy Dalal"  wrote:

> Append &fl=
>
> On Thu, 18 Feb 2016, 11:35 Tom Running  wrote:
>
> > Hello,
> >
> > I am working on a project using Solr to search data from retrieved from
> > Nutch.
> >
> > I have successfully integrated Nutch with Solr, and Solr is able to
> search
> > Nutch's data.
> >
> > However I am having a bit of a problem. If I query Solr, it will bring
> back
> > the numfound and which document the query string was found in, but it
> will
> > not display the string that contains the query string.
> >
> > Can anyone help on how to display the entire string that contains the
> > query.
> >
> >
> > I appreciate your time and guidance. Thank you so much!
> >
> > -T
> >
> --
> Regards,
> Binoy Dalal
>


Solr

2015-06-06 Thread Tom Running
Hello,

I have customized my Solr results so that they display only 3 fields: the
document ID, name and last_modified date. The results are in JSON.

This is a sample of my Javascript function to execute the query:

var query = "";

//set user input to query
query = window.document.box.input.value;

//solr URL
var sol = "
http://localhost:8983/solr/gettingstarted_shard1_replica1/select?q=";;
var sol2 =
"&wt=json&fl=title,id,category,last_modified&rows=1000&indent=true";

//redirect
window.location.href = sol+query+sol2;
//

The output example would look like:

{
"id":"/solr/docs/ISO/Employee Benefits Information/BCN.doc",
"title":["BCN Auto Policy Verbiage:"],
"last_modified":["2014-01-07T15:19:00Z"]},



I want to format my Solr results so that the document ID will be displayed
as a link that users can click on and load the BCN.doc file.

Any tips on how to do this? I am a stuck.

All help is appreciated!

Thanks,

T