Re: Solr faceted search UI

2013-05-28 Thread Fergus McDowall
You also get some smooth UI stuff "for free"

F

On Tue, May 28, 2013 at 10:58 AM, Fergus McDowall
wrote:

> Hi Richa
>
> Solrstrap is probably the best way to go if you just want to get up a PoC
> as fast as possible. Solrstrap requires no installation of middleware, you
> just add in the address of your solr server and open the file in your
> browser.
>
> Regards
> Fergus
>
>
>
> On Wed, Apr 24, 2013 at 5:23 PM, richa  wrote:
>
>> Thank you very much for your suggestion.
>> This is only for PoC. As you suggested about blacklight, can I run this on
>> windows and to build PoC do I have to have ruby on rails knowledge?
>>
>> Irrespective of any technology and considering the fact that in past I had
>> worked on java, j2ee what would you suggest or how would you have
>> proceeded
>> for this?
>>
>> Blacklight seems to be a good option, not sure without prior knowledge of
>> ruby on rails, will I be able to present in short period of time? any
>> suggestion on this?
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058617.html
>>  Sent from the Solr - User mailing list archive at Nabble.com.
>>
>
>


Re: Solr faceted search UI

2013-05-28 Thread Fergus McDowall
Hi Richa

Solrstrap is probably the best way to go if you just want to get up a PoC
as fast as possible. Solrstrap requires no installation of middleware, you
just add in the address of your solr server and open the file in your
browser.

Regards
Fergus



On Wed, Apr 24, 2013 at 5:23 PM, richa  wrote:

> Thank you very much for your suggestion.
> This is only for PoC. As you suggested about blacklight, can I run this on
> windows and to build PoC do I have to have ruby on rails knowledge?
>
> Irrespective of any technology and considering the fact that in past I had
> worked on java, j2ee what would you suggest or how would you have proceeded
> for this?
>
> Blacklight seems to be a good option, not sure without prior knowledge of
> ruby on rails, will I be able to present in short period of time? any
> suggestion on this?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058617.html
>  Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Solr faceted search UI

2013-04-25 Thread Majirus FANSI
Hi Rocha,
In your webapp I guess you have at list a view and a service layers.
The indexing and search modules should preferably be hosted at the service
layer.
I recommend you read the Api doc (
http://lucene.apache.org/solr/4_2_1/solr-solrj/index.html) to get a sense
of what you can do with SolrJ.
Followinf is a Basic Example Facets with SolrJ:
//adding the query keyword to the SolrQuery object
 mySolrQuery.setQuery(queryBuilder.toString());
// add a facet field
mySolrQuery.addFacetField("myFieldName")
//add a facet query
validatedFromTheLast7DaysFacetQuery = validationDateField + ":[NOW/DAY-7DAY
TO NOW]"
mySolrQuery.addFacetQuery(validatedFromTheLast7DaysFacetQuery)

//send the request in HTTP POST as with HTTP GET you run into issues when
the request string is too long.
QueryResponse queryResponse =  getSolrHttpServer().query(mysolrQuery,
METHOD.POST);

//write a transformer to convert the Solr response to a format
understandable by the caller (the client of the search service)
//List of results to transform
SolrDocumentList responseSolrDocumentList = queryResponse.getResults();
//get the facet fields, interate over the list, parse each FacetField and
extract the information you are intersted in
queryResponse.getFacetFields()
//get the facet query from the response
 Map mapOfFacetQueries = queryResponse.getFacetQuery();
The keys of this map are your facet queries. The values are the counts you
display to the user. In general, I have an identifier for each facetQuery.
When I parse the keys of this map of facet queries, I return the identifier
of each facet along with its count (if the count > 0 of course). The caller
is aware of this identifier so it knows what to display to the user.

When the user clicks on a facet, you send it as a search criteria along
with the initial keywords to the search service. The criteria resulting
from the facet is treated as a filter query. That is how faceting search
works. Adding a filter to your query is as simple as this snippet
mySolrQuery.addFilterQuery(myfilterQuery). should you are filtering because
your user click on the previously defined facet query, then the filter
query is the same as the facet query. that is myfilterQuery =
validationDateField + ":[NOW/DAY-7DAY TO NOW]".

I hope this helps.

Cheers,

Maj


On 24 April 2013 17:27, richa  wrote:

> Hi Maj,
>
> Thanks for your suggestion.
> Tell me one thing, do you have any example on solrj? suppose I decide to
> use solrj in simple web application, to display faceted search on web page.
> Where will this fit into? what will be the flow?
>
> Please suggest.
>
> Thanks
>
>
> On Wed, Apr 24, 2013 at 11:01 AM, Majirus FANSI [via Lucene] <
> ml-node+s472066n4058610...@n3.nabble.com> wrote:
>
> > Hi richa,
> > You can use solrJ (
> > http://wiki.apache.org/solr/Solrj#Reading_Data_from_Solr)
> > to query your solr index.
> > On the wiki page indicated, you will see example of faceted search using
> > solrJ.
> > 2009 article by Yonik available on
> > searchhub
> > is
> > a good tutorial on faceted search.
> > Whether you go for MVC framework or not is up to you. It is recommend
> > tough
> > to develop search engine application in a Service Oriented Architecture.
> > Regards,
> >
> > Maj
> >
> >
> > On 24 April 2013 16:43, richa <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4058610&i=0>>
> > wrote:
> >
> > > Hi,
> > > I am working on a POC, where I have to display faceted search result on
> > web
> > > page. can anybody please help me to suggest what all set up I need to
> > > configure to display. I would prefer java technologies. Just to
> mention,
> > I
> > > have solr cloud running on remote server.
> > > I would like to know:
> > > 1. Should I use MVC framework?
> > > 2. How will my local interact with remote solr server?
> > > 3. How will I send query through java code and what technology I should
> > use
> > > to display faceted search result?
> > >
> > > Please help me on this.
> > >
> > > Thanks,
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598.html
> > > Sent from the Solr - User mailing list archive at Nabble.com.
> > >
> >
> >
> > --
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058610.html
> >  To unsubscribe from Solr faceted search UI, click here<
> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4058598&code=c3RyaWtldGhlZ29hbEBnbWFpbC5jb218NDA1ODU5OHwxNzIzOTAyMzYx
> >
> > .
> > NAML<
> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%2

Re: Solr faceted search UI

2013-04-24 Thread richa
Hi Maj,

Thanks for your suggestion.
Tell me one thing, do you have any example on solrj? suppose I decide to
use solrj in simple web application, to display faceted search on web page.
Where will this fit into? what will be the flow?

Please suggest.

Thanks


On Wed, Apr 24, 2013 at 11:01 AM, Majirus FANSI [via Lucene] <
ml-node+s472066n4058610...@n3.nabble.com> wrote:

> Hi richa,
> You can use solrJ (
> http://wiki.apache.org/solr/Solrj#Reading_Data_from_Solr)
> to query your solr index.
> On the wiki page indicated, you will see example of faceted search using
> solrJ.
> 2009 article by Yonik available on
> searchhub
> is
> a good tutorial on faceted search.
> Whether you go for MVC framework or not is up to you. It is recommend
> tough
> to develop search engine application in a Service Oriented Architecture.
> Regards,
>
> Maj
>
>
> On 24 April 2013 16:43, richa <[hidden 
> email]>
> wrote:
>
> > Hi,
> > I am working on a POC, where I have to display faceted search result on
> web
> > page. can anybody please help me to suggest what all set up I need to
> > configure to display. I would prefer java technologies. Just to mention,
> I
> > have solr cloud running on remote server.
> > I would like to know:
> > 1. Should I use MVC framework?
> > 2. How will my local interact with remote solr server?
> > 3. How will I send query through java code and what technology I should
> use
> > to display faceted search result?
> >
> > Please help me on this.
> >
> > Thanks,
> >
> >
> >
> > --
> > View this message in context:
> > http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058610.html
>  To unsubscribe from Solr faceted search UI, click 
> here
> .
> NAML
>




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058619.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr faceted search UI

2013-04-24 Thread Alexandre Rafalovitch
I tried previous version of blacklight (on a Mac) and was able to get
it to the demo stage without much RoR knowledge. The facet field
declarations were all in the config files. You should be able to get a
go/nogo decision in under four hours.

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Wed, Apr 24, 2013 at 11:23 AM, richa  wrote:
> Thank you very much for your suggestion.
> This is only for PoC. As you suggested about blacklight, can I run this on
> windows and to build PoC do I have to have ruby on rails knowledge?
>
> Irrespective of any technology and considering the fact that in past I had
> worked on java, j2ee what would you suggest or how would you have proceeded
> for this?
>
> Blacklight seems to be a good option, not sure without prior knowledge of
> ruby on rails, will I be able to present in short period of time? any
> suggestion on this?
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058617.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr faceted search UI

2013-04-24 Thread richa
Thank you very much for your suggestion. 
This is only for PoC. As you suggested about blacklight, can I run this on
windows and to build PoC do I have to have ruby on rails knowledge?

Irrespective of any technology and considering the fact that in past I had
worked on java, j2ee what would you suggest or how would you have proceeded
for this?

Blacklight seems to be a good option, not sure without prior knowledge of
ruby on rails, will I be able to present in short period of time? any
suggestion on this?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598p4058617.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr faceted search UI

2013-04-24 Thread Majirus FANSI
Hi richa,
You can use solrJ (http://wiki.apache.org/solr/Solrj#Reading_Data_from_Solr)
to query your solr index.
On the wiki page indicated, you will see example of faceted search using
solrJ.
2009 article by Yonik available on
searchhub
is
a good tutorial on faceted search.
Whether you go for MVC framework or not is up to you. It is recommend tough
to develop search engine application in a Service Oriented Architecture.
Regards,

Maj


On 24 April 2013 16:43, richa  wrote:

> Hi,
> I am working on a POC, where I have to display faceted search result on web
> page. can anybody please help me to suggest what all set up I need to
> configure to display. I would prefer java technologies. Just to mention, I
> have solr cloud running on remote server.
> I would like to know:
> 1. Should I use MVC framework?
> 2. How will my local interact with remote solr server?
> 3. How will I send query through java code and what technology I should use
> to display faceted search result?
>
> Please help me on this.
>
> Thanks,
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Solr faceted search UI

2013-04-24 Thread Erik Hatcher
It's a pretty subjective and opinionated kinda thing here, as UIs are built 
with all sorts of technologies and even though I'm quite opinionated about how 
*I* would build something I work with a lot of folks that have their own 
preferences or organizational standards/constraints on what they can use.  
Pragmatically speaking, it's best to use what you or your team are familiar 
with.

That being said... if this is strictly for a PoC and not something you need to 
put into production as-is, you can leverage the /browse feature powered by 
Solr's VelocityResponseWriter (wt=velocity) that is in  Solr's example 
configuration.

I'm not aware of any Java-based framework out there for Solr - there's so many 
choices (Struts?  Tapestry?  JSPs?  etc) that any single one of them would be 
off-putting to others.

In Java, the SolrJ library is what you want to use for remote access to Solr.  
You'll get back a Java response object that you can navigate to pull out the 
facet information to hand to your view tier.

If you're ok with something not Java (but can be deployed in a Java container 
and can interact with Java) then give projectblacklight.org a try - it's a Ruby 
on Rails full featured front-end to Solr.  There's also solrstrap that looks 
like a fun place to do some lightweight PoC development.

Erik


On Apr 24, 2013, at 10:43 , richa wrote:

> Hi,
> I am working on a POC, where I have to display faceted search result on web
> page. can anybody please help me to suggest what all set up I need to
> configure to display. I would prefer java technologies. Just to mention, I
> have solr cloud running on remote server.
> I would like to know:
> 1. Should I use MVC framework?
> 2. How will my local interact with remote solr server?
> 3. How will I send query through java code and what technology I should use
> to display faceted search result?
> 
> Please help me on this.
> 
> Thanks,
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-faceted-search-UI-tp4058598.html
> Sent from the Solr - User mailing list archive at Nabble.com.