Autocomplete and Sorting on multiple multi-value/single-value fields

2010-08-21 Thread Neil Lott
Hi, I'm wondering if anyone has run across this issue before. I do understand that you cannot sort on a multivalued field -- so I'm looking for alternatives people have used. Let's say I have nine fields: The text field type is

Re: Possible to have more than 1 uniqueKey fields in a document?

2010-08-21 Thread Lance Norskog
You can only have one field marked as the unique key on Solr. That's it. If you happen to have two unique values per document, that is ok. Only one of them can be the official unique key. It's just like a primary key in a database table. You can't have two primaries. "There can only be one." - Hi

Re: Possible to have more than 1 uniqueKey fields in a document?

2010-08-21 Thread Andy
I'm still a bit confused. Can I define 2 "uniqueKey" fields in schema.xml? I want to use 2 outside apps. One define a uniqueKey that is a mix of alphabets and numbers. Another app requires a uniqueKey of the type long. Obviously the 2 requirements aren't compatible. I'm trying to see if it's po

Re: How to Debug Sol-Code in Eclipse ?!

2010-08-21 Thread Lance Norskog
Running unit tests is easy, once you set the right 'current directory' so that unit tests can find their resource files. I have found that if I get a full set of unit tests for something, I don't have to debug it in the full app. Running the whole thing as a servlet has the whole servlet engine se

Re: Possible to have more than 1 uniqueKey fields in a document?

2010-08-21 Thread Lance Norskog
There can be as many as you want. Buy you can only specify one as "the uniqueKey". That is used for Distributed Search and deduplication. Indexing might work better if you concatenate the different unique values into one field. On Sat, Aug 21, 2010 at 3:27 AM, Andy wrote: > Is it possible to def

Re: solr

2010-08-21 Thread Lance Norskog
This will make a unique key for you: In In 2010/8/21 Rafał Kuć : > Hello! > >> is there need to allot a unique id to every file? > > You don`t need one, unique id is not mandatory, but many features wont > work without it. > >> do we have to specify the id manua

Re: facets - id and display value

2010-08-21 Thread Lance Norskog
Faceting harvests the fields that are already indexed (so you have to both store and index the fields) and uses Java object refs (pointers), without copying the facet values. You know how log files have multi-line exception stacks & the like? The multi-line exception stacks after the real log line

Re: Duplicate docs when merging indices?

2010-08-21 Thread Gora Mohanty
On Sat, 21 Aug 2010 05:26:59 -0700 (PDT) Andrew Clegg wrote: [...] > If I merge two indices with CoreAdmin, as detailed here... > > http://wiki.apache.org/solr/MergingSolrIndexes > > What happens to duplicate documents between the two? i.e. those > that have the same unique key. > > What decide

Re: /update/extract

2010-08-21 Thread Jayendra Patil
The Extract Request Handler invokes the classes from the extraction package. https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/contrib/extraction/src/main/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java This is package into the apache-solr-cell jar. Regards, Jayendra*

Re: solr

2010-08-21 Thread Peter Karich
Hi Ankita, first: thanks for trying apache solr. > does all the data to be indexed has to be in exampledocs folder? No. And there are several ways to push data into solr: via indexing, dataimporthandler, solrj, ... I know that getting comfortable with a new project is a bit complicated at first

How to Debug Sol-Code in Eclipse ?!

2010-08-21 Thread stockii
Hello.. Can anyone give me some tipps to debug the solr-code in Eclipse ? or do i need apache-Ant to do this ? thhx =) -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-Debug-Sol-Code-in-Eclipse-tp1262050p1262050.html Sent from the Solr - User mailing list archive at

Duplicate docs when merging indices?

2010-08-21 Thread Andrew Clegg
Hi, First off, sorry about previous accidental post, had a sausage-fingered moment. Anyway... If I merge two indices with CoreAdmin, as detailed here... http://wiki.apache.org/solr/MergingSolrIndexes What happens to duplicate documents between the two? i.e. those that have the same unique key

Duplicate docs when mergin

2010-08-21 Thread Andrew Clegg
-- View this message in context: http://lucene.472066.n3.nabble.com/Duplicate-docs-when-mergin-tp1261979p1261979.html Sent from the Solr - User mailing list archive at Nabble.com.

Possible to have more than 1 uniqueKey fields in a document?

2010-08-21 Thread Andy
Is it possible to define more than 1 uniqueKey fields per document in schema.xml?

solr

2010-08-21 Thread ankita shinde
hi, does all the data to be indexed has to be in exampledocs folder? how to import data from mysql? I have tried the steps on http://wiki.apache.org/solr/DataImportHandler. but its giving me error as "could not create importer.dataimporter". What does it mean? I am completely new to solr. How to co

Re: solr

2010-08-21 Thread Rafał Kuć
Hello! > is there need to allot a unique id to every file? You don`t need one, unique id is not mandatory, but many features wont work without it. > do we have to specify the id manually or solr does it? Solr doesn`t do it automatically, You have to do it. > how to allot an unique id to text f

solr

2010-08-21 Thread ankita shinde
hi all, is there need to allot a unique id to every file? do we have to specify the id manually or solr does it? how to allot an unique id to text file?