Re: Ngram Repeats

2008-12-24 Thread Jeff Newburn
You are correct on the layout. The reason we are trying to do the ngrams is we want to do a drop down box for autocomplete. The ngrams are extremely fast and the recommended way to do this according to the user group. They work wonderfully except this one issue. So do we basically have to do a

Re: Problems with WordDelimiterFilterFactory

2008-12-24 Thread GPS.
Tried this once again, with different combinations, none worked actually.. David Smiley @MITRE.org wrote: > > It seems you want Id to only match on complete field values. If that is > the case then you should not do tokenization nor perhaps any text analysis > altogether. Consider removing th

RE: Ngram Repeats

2008-12-24 Thread Feak, Todd
It sounds like you want to get a list of "brands" that start with a particular string, out of your index. But your index is based on products, not brands. Is that correct? If so, that has nothing to do with NGrams (or even tokenizing for that matter) I think you should be doing a Facet query in

Ngram Repeats

2008-12-24 Thread Jeff Newburn
I have set up an ngram filter and have run into a problem. Our index is basically composed of products as the unique id. Each product also has a brand name assigned to it. There are much fewer unique brand names than products in the index. I tried to set up an ngram based on the brand name but

Re: Need idea in Curl call for indexing the files

2008-12-24 Thread Koji Sekiguchi
Prabhu, Use stream.url instead of stream.file when you specify remote file url. Koji RaghavPrabhu wrote: Hi all, I want to index the files by calling the solr instance using curl call.For indexing the files, i gave the local file path that is working fine. What i need to do is, indexing th

Re: "Unable to move index file" error during replication

2008-12-24 Thread Jaco
Very good! I applied the patch in the attached file, working fine now. I'll keep monitoring and post any issues found. Will this be included in some next nightly build? Thanks very much for the very quick response! Jaco. 2008/12/24 Noble Paul നോബിള്‍ नोब्ळ् > James thanks . > > If this is tru

Re: Limiting the content of the result

2008-12-24 Thread Sujatha Arun
Hi, I think you are talking about limiting the content of content field in search results. We usually create a separate field in the schema and copy only abt 250 chars and show that field during display time.This field is only stored and not indexed. Regards Sujatha On 12/24/08, Shalin Shekhar

Re: "Unable to move index file" error during replication

2008-12-24 Thread Noble Paul നോബിള്‍ नोब्ळ्
James thanks . If this is true the place to fix this is in ReplicationHandler#getFileList(). patch is attached. On Wed, Dec 24, 2008 at 4:04 PM, James Grant wrote: > I had the same problem. It turned out that the list of files from the master > included duplicates. When the slave completes the

Re: Solrj: Getting response attributes from QueryResponse

2008-12-24 Thread Aleksander M. Stensby
Hello there Mark! With SolrJ, you can simply do the following: server.query(q) returns QueryResponse the queryResponse has the method getResults() which returns SolrDocumentList. This is an extended list containing SolrDocuments, but it also exposes methods such as getNumFound(), which is exa

Re: "Unable to move index file" error during replication

2008-12-24 Thread James Grant
I had the same problem. It turned out that the list of files from the master included duplicates. When the slave completes the download and tries to move the files into the index it comes across a file that does not exist because it has already been moved so it backs out the whole operation.

Re: "Unable to move index file" error during replication

2008-12-24 Thread Noble Paul നോബിള്‍ नोब्ळ्
Replication uses File#renameTo() method to move files from temp dir to the index dir.If this call fails replication fails. We must do a file copy if this fails. report a bug . --Noble On Wed, Dec 24, 2008 at 3:47 PM, Jaco wrote: > Hello, > > While testing out the new replication features, I'm r

"Unable to move index file" error during replication

2008-12-24 Thread Jaco
Hello, While testing out the new replication features, I'm running into some strange problem. On the slave, I keep getting an error like this after all files have been copied from the master to the temporary index.x directory: SEVERE: Unable to move index file from: D:\Data\solr\Slave\dat

Re: Getting request object within search component

2008-12-24 Thread Noble Paul നോബിള്‍ नोब्ळ्
The request object is not exposed. You may need to hack SolrDispatchFilter and put in the values into the request attributes On Wed, Dec 24, 2008 at 1:46 PM, Plaatje, Patrick wrote: > Hi All, > > I developed my own custom search component, in which I need to get the > requestors ip-address. But I

Re: Limiting the content of the result

2008-12-24 Thread Shalin Shekhar Mangar
You need to use the hl, hl.fl and hl.snippets parameters. For example: http://localhost:8983/solr/select/?stylesheet=&q=solr+xml&version=2.1&start=0&rows=10&indent=on&hl=true&hl.fl=features,sku&hl.snippets=3 See http://wiki.apache.org/solr/StandardRequestHandler for an example output. On Wed, De

Re: Core load: reading config file (no class defination found ) error

2008-12-24 Thread Shalin Shekhar Mangar
You need to add the lucene-highlighter jar. If you download the Solr distribution, you can find all the dependencies in the lib folder. On Wed, Dec 24, 2008 at 1:49 PM, Sagar Khetkade wrote: > > Hi, > When loading the solr core in an web application I am using > EmbeddedSolrServer class. > When

Re: emample for using SOLR for search against database tables

2008-12-24 Thread Chris Hostetter
: Well, there is the EmbeddedSolrServer - Solr runs totally fine as a pure Java : API. It can also be embedded in your own web apps without having Solr as a : standalone service. and the starting point... http://wiki.apache.org/solr/Solrj IIRC: the API for monitoring/admining DataImportHandler

Core load: reading config file (no class defination found ) error

2008-12-24 Thread Sagar Khetkade
Hi, When loading the solr core in an web application I am using EmbeddedSolrServer class. When loading the core directly through CoreContainer Class’s constructor CoreContainer(String instanceDir, File configFile) it is giving me error of “java.lang.NoClassDefFoundError: org/apache/lucene/se

Getting request object within search component

2008-12-24 Thread Plaatje, Patrick
Hi All, I developed my own custom search component, in which I need to get the requestors ip-address. But I can't seem to find a request object from where I can get this string, ideas anyone? Best, Patrick