You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by deniz <de...@gmail.com> on 2011/05/06 08:40:00 UTC

Solr Search fails

Hi all. have been trying to implement a universal search on a field but
somehow it fails...

when I make a full import everything is ok I can see the indexed field. But
when i make a query like 

universal:Male

it shows no match....

any ideas?

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

Re: Solr Search fails

Posted by deniz <de...@gmail.com>.
solved...

gotta use wildcards... 


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

Re: Solr Search fails

Posted by deniz <de...@gmail.com>.
well the line with id is universal/user/id 
sorry for the typo... and problem is still going on

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

Re: Solr Search fails

Posted by deniz <de...@gmail.com>.
well... i have made some changes to see what happens... here is the current
situation... not only search but also indexing fails...
here is my dataconfig file:

<dataConfig>
<dataSource type="URLDataSource" connectionTimeout="5000"
readTimeout="100000"/>
    <document>
                <entity name="universal"
                        pk="id"
                        url="http://blablabla/6564"
                        processor="XPathEntityProcessor"
                        forEach="/universal/user">
                        <field column="user"       xpath="/universal/user"/>
                        <field column="id"       xpath="/universal/id"/>            
        </entity>
    </document>
</dataConfig>


the url simply returns an xml file formatted as

<universal>

  <user>
  </user>
 
 <id>
 </id>

</universal>


and here is the related part of the schema.xml :

 <fields>
   <field name="user" type="string" indexed="true" stored="true" />
   <field name="id" type="string" indexed="true" stored="true"
required="true" />   
 </fields>
 <uniqueKey>id</uniqueKey>
 <defaultSearchField>user</defaultSearchField>

And here is the result:

When there is only one field "user", it can be indexed but when I make a
search no matches... And when I add "id" field too, it is not indexed.


so any ideas?

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

Re: Solr Search fails

Posted by Grijesh <pi...@gmail.com>.
provide your schema for more detail about your problem

-----
Thanx: 
Grijesh 
www.gettinhahead.co.in 
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Search-fails-tp2907093p2907192.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Search fails

Posted by deniz <de...@gmail.com>.
well i have already done.. both the exact text and also some word in the
whole text... nothing changes...

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

Re: Solr Search fails

Posted by Grijesh <pi...@gmail.com>.
If its type is string then you can search for exact text only not for any
part of string and also case sensitive

-----
Thanx: 
Grijesh 
www.gettinhahead.co.in 
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Search-fails-tp2907093p2907148.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Search fails

Posted by deniz <de...@gmail.com>.
type is string and i use standard analyzer ( i am not sure what you mean by
the word chain )

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

Re: Solr Search fails

Posted by Grijesh <pi...@gmail.com>.
What is your field type and analysis chain

-----
Thanx: 
Grijesh 
www.gettinhahead.co.in 
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Search-fails-tp2907093p2907097.html
Sent from the Solr - User mailing list archive at Nabble.com.