Re: Understanding the MoreLikeThis Handler

2015-06-22 Thread Sreekant Sreedharan
Also, in the documentation it says: /MoreLikeThis constructs a lucene query based on terms within a document. For best results, use stored TermVectors in the schema.xml for fields you will use for similarity. If termVectors are not stored, MoreLikeThis will generate terms from stored fields. /

Understanding the MoreLikeThis Handler

2015-06-22 Thread Sreekant Sreedharan
I am trying to implement a search for documents with similar texts like a sample document. I assumed that the SOLR MoreLikeThis handler would suit me well. I have been able to setup the handler and it seems to work. I have a core called images2. And I have the following entry in my

Re: Understanding the MoreLikeThis Handler

2015-06-23 Thread Sreekant Sreedharan
I seem to be missing something. I copied the configuration for the request handler in my solr config. It now looks like this requestHandler name=/mlt class=solr.MoreLikeThisHandler lst name=defaults str name=mlt.boosttrue/str str name=mlt.qf title^2.0 description^1.5

Re: Understanding the MoreLikeThis Handler

2015-06-23 Thread Sreekant Sreedharan
This has been resolved. The issue was indeed the mlt.mintf value. -- View this message in context: http://lucene.472066.n3.nabble.com/Understanding-the-MoreLikeThis-Handler-tp4213279p4213399.html Sent from the Solr - User mailing list archive at Nabble.com.

QueryParser to translate query arguments

2015-06-17 Thread Sreekant Sreedharan
I have a requirement to make SOLR a turnkey replacement for our legacy search engine. To do this, the queries supported by the legacy search engine has to be supported by SOLR. To do this, I have implemented a QueryParser. I've implemented it several ways: 1. I've copied the implementation in

XSLT with maps

2015-07-22 Thread Sreekant Sreedharan
Hi, I am using the SOLR XSLT response writer. My challenge is to convert some fields in the schema from one value to another. I am using a map to do this. Here's the sample XSLT file xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:my=my:my xsl:output

Re: XSLT with maps

2015-07-22 Thread Sreekant Sreedharan
Well I guess I oversimplified things. My goal is to transform a SOLR response that looks like: response ... result name=response numFound=202 start=0 doc str name=id589587B2B1CA4C4683FC106967E7C326/str /doc /result /response into something that looks like IMAGES ID

Re: XSLT with maps

2015-07-23 Thread Sreekant Sreedharan
That worked for most of my attributes. I have only one issue to fix. How would I convert boolean values to integers? For example: doc ... bool name=prfalse/bool /doc to ID pr=0 /ID Is that possible as well? On that note, what version of XSLT should I assume SOLR supports?

Re: XSLT with maps

2015-07-23 Thread Sreekant Sreedharan
Well, if you had a result say: ... doc str name=id589587B2B1CA4C4683FC106967E7C326/str str name=arEE3YYK/str int name=age31034/int /doc ... applying the template: xsl:template match=doc ID NewID={@id} ... / /xsl:template would result in the following XML: IMAGES ID NewID=/ /IMAGES

Re: XSLT with maps

2015-07-24 Thread Sreekant Sreedharan
Yes I am fairly new to XSLT. I used the velocity response writer for some prototypes. I found it very intuitive. But the requirement for the app specifically rules it out and mandates the XSLT approach. I have finally got it working. Thanks to all your help. Here's what I got (a minor correction

Re: Generating a document by group count and displaying the result

2015-09-17 Thread Sreekant Sreedharan
The solution we came up with is to do a faceted search and use a stylesheet to 'flatten' the result. -- View this message in context: http://lucene.472066.n3.nabble.com/Generating-a-document-by-group-count-and-displaying-the-result-tp4229183p4229712.html Sent from the Solr - User mailing list

Generating a document by group count and displaying the result

2015-09-15 Thread Sreekant Sreedharan
I have a requirement to group documents by count based on a particular field: So for example if you have the following three documents: 1 food car 2 travel car 3 food car A search