How to read the filter the files which has a delimiter by "|"

i am unable to use filter and do it

scala> realestate.filter(t => t.split("|")(1)).take(10).foreach(println)
:27: error: type mismatch;
found : String
required: Boolean
realestate.filter(t => t.split("|")(1)).take(10).foreach(println)

scala> realestate.take(5).foreach(println)
1461262|Arroyo Grande|795000|3|3|2371|365.3|Short Sale
1478004|Paulo Pablo|399000|4|3|2818|163.59|Short Sale
1486551|Paulo Pablo|545000|4|3|3032|179.75|Short Sale
1492832|Santa Bay|909000|4|4|3540|286.78|Short Sale
1499102|Thomas County|109900|3|1|1249|98.99|Short Sale