lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willi Haase <willi_ha...@yahoo.com>
Subject Re: How to use/create an alias to a field?
Date Thu, 25 Oct 2012 15:59:12 GMT
Hi Jack

Thank you for your help.
My problem is, I have only a Lucene setup and can not switch to Solr : (

Cheers
  Willi 


________________________________
 Von: Jack Krupansky <jack@basetechnology.com>
An: java-user@lucene.apache.org 
Gesendet: 15:57 Donnerstag, 25.Oktober 2012
Betreff: Re: How to use/create an alias to a field?
 
With edismax in Solr 3.6/4.0 field aliases are supported:

"The syntax for aliasing is f.myalias.qf=realfield. A user query for myalias:foo will be queried
as realfield:foo."

See:
http://wiki.apache.org/solr/ExtendedDisMax#Field_aliasing_.2BAC8_renaming

-- Jack Krupansky

-----Original Message----- From: Willi Haase
Sent: Thursday, October 25, 2012 9:26 AM
To: java-user@lucene.apache.org
Subject: How to use/create an alias to a field?

Hello

I am using Lucene 3.4 and I have nearly the same question like Jan in his post:
http://mail-archives.apache.org/mod_mbox/lucene-java-user/200801.mbox/%3C4791E482.60900%40gmx.de%3E


I could found something helpful in "Lucene in Action" or in the web.
What is the recommended way to create an alias to a field?
I want be able to use in the searchquery "au:some_name" or "auth:some_name" or "author:some_name",
all using the field "author".

Many thanks in advance for any help or recommendations
Willi : ) 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message