Exact Search Problem

2013-07-26 Thread Furkan KAMACI
Let's assume that I have that urls at my index:

www.abc.com
www.abc.com/a
www.abc.com/b
www.abc.com/c
...
www.abc.com/x



How can I exact search for www.abc.com ? url:www.abc.com doesn't works
because it returns both www.abc.com/a, www.abc.com/b etc?


Re: Exact Search Problem

2013-07-26 Thread Jack Krupansky
Separate fields for URL as string and URL as keywords makes sense. You can 
also use the URL classifier update processor or a regex filter to have a 
third field to match solely the domain name, if that is needed.


-- Jack Krupansky

-Original Message- 
From: Furkan KAMACI

Sent: Friday, July 26, 2013 12:49 PM
To: solr-user@lucene.apache.org
Subject: Exact Search Problem

Let's assume that I have that urls at my index:

www.abc.com
www.abc.com/a
www.abc.com/b
www.abc.com/c
...
www.abc.com/x



How can I exact search for www.abc.com ? url:www.abc.com doesn't works
because it returns both www.abc.com/a, www.abc.com/b etc? 



Re: Exact Search Problem

2013-07-26 Thread SolrLover
May be this wont work, but just a thought...Cant you use
PathHierarchyTokenizerFactory and configure as below?

In this example however we see the oposite configuration, so that a query
for Books/NonFic/Science/Physics would match documents containing
Books/NonFic, Books/NonFic/Science, or Books/NonFic/Science/Physics, but not
Books/NonFic/Science/Physics/Theory or Books/NonFic/Law.

 fieldType name=descendent_path class=solr.TextField
   analyzer type=index
 tokenizer class=solr.KeywordTokenizerFactory /
   /analyzer
   analyzer type=query
 tokenizer class=solr.PathHierarchyTokenizerFactory delimiter=/ /
   /analyzer
 /fieldType



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Exact-Search-Problem-tp4080669p4080676.html
Sent from the Solr - User mailing list archive at Nabble.com.