Re: Solr insert error

2011-03-12 Thread rahul
uniqueKey id uniqueKey
copyField source="uniqueid" dest="id"

Please note that, I have marked uniqueKey as bold, since I can't make it as
Tag and post in this forum. uniqueKey is the tag only..

Here, id and uniqueid both are declared as string. I only pass the uniqueid
in the query.

Please note, this error not occurred for all the inserts. Its only occur for
particular inserts which has id value in their content. I believe I need to
change the unique field names in schema (avoid to repeat the same words in
content also)

Thanks,

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-insert-error-tp2664504p2668614.html
Sent from the Solr - User mailing list archive at Nabble.com.


Synoms not working quite right?

2011-03-12 Thread Andy Newby
Hi,

I'm trying to get the synoms working for my search system, but they don't
seem to be working:

television,televisions,tv,tvs,tvisions,abcdef
computer => laptop

I restarted Solr, and then tried a search for "tvisions", but no results (as
there is obivously no result with that keyword in, BUT there are a ton with
"tv" , "television" etc in)

However, the query:

computer => laptop

..works fine ( search for "computer", and I also get results matching
"laptop")

TIA
-- 
Andy Newby
a...@ultranerds.com


Re: Synoms not working quite right?

2011-03-12 Thread Jan Høydahl
Hi,

Can you please supply relevant details of how you do the query? Which fields 
are queried? What field types are they? Pasting in your query URL would help.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 12. mars 2011, at 11.16, Andy Newby wrote:

> Hi,
> 
> I'm trying to get the synoms working for my search system, but they don't
> seem to be working:
> 
> television,televisions,tv,tvs,tvisions,abcdef
> computer => laptop
> 
> I restarted Solr, and then tried a search for "tvisions", but no results (as
> there is obivously no result with that keyword in, BUT there are a ton with
> "tv" , "television" etc in)
> 
> However, the query:
> 
> computer => laptop
> 
> ..works fine ( search for "computer", and I also get results matching
> "laptop")
> 
> TIA
> -- 
> Andy Newby
> a...@ultranerds.com



Re: Solr and Permissions

2011-03-12 Thread Geert-Jan Brits
Ahh yes, sorry about that. I assumed ExternalFileField would work for
filtering as well. Note to self: never assume
Geert-Jan

2011/3/12 Koji Sekiguchi 

> (11/03/12 10:28), go canal wrote:
>
>> Looking at the API doc, it seems that only floating value is currently
>> supported, is it true?
>>
>
> Right. And it is just for changing score by using float values in the file,
> so it cannot be used for filtering.
>
> Koji
> --
> http://www.rondhuit.com/en/
>


Re: Solr insert error

2011-03-12 Thread Erick Erickson
<<< Its only occur for particular inserts which has id value in their
content.>>>

Then what you're seeing is exactly what I'd expect. The id field is already
in the document. The intent of copyfield is to add data to the dest field
from the source field, not replace it. Since some of your documents already
have an id field, you're getting the expected error.

You need to either clean the ID field out of the documents that have a
uniqueid or replace the id in the input document with the uniqueid (when
present) and remove the copyfield.

Best
Erick

On Sat, Mar 12, 2011 at 5:15 AM, rahul  wrote:
> uniqueKey id uniqueKey
> copyField source="uniqueid" dest="id"
>
> Please note that, I have marked uniqueKey as bold, since I can't make it as
> Tag and post in this forum. uniqueKey is the tag only..
>
> Here, id and uniqueid both are declared as string. I only pass the uniqueid
> in the query.
>
> Please note, this error not occurred for all the inserts. Its only occur for
> particular inserts which has id value in their content. I believe I need to
> change the unique field names in schema (avoid to repeat the same words in
> content also)
>
> Thanks,
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-insert-error-tp2664504p2668614.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Synoms not working quite right?

2011-03-12 Thread Erick Erickson
Did you reindex? And are you doing query time or index time expansion?

As Jan indicated, please show us the results of &debugQuery=on with
this.

Finally, did you look at the field in question with the admin page or Luke
to understand what's actually in the field in question and if it matches
your expectations?

Best
Erick

On Sat, Mar 12, 2011 at 6:16 AM, Andy Newby  wrote:
> Hi,
>
> I'm trying to get the synoms working for my search system, but they don't
> seem to be working:
>
> television,televisions,tv,tvs,tvisions,abcdef
> computer => laptop
>
> I restarted Solr, and then tried a search for "tvisions", but no results (as
> there is obivously no result with that keyword in, BUT there are a ton with
> "tv" , "television" etc in)
>
> However, the query:
>
> computer => laptop
>
> ..works fine ( search for "computer", and I also get results matching
> "laptop")
>
> TIA
> --
> Andy Newby
> a...@ultranerds.com
>